tests: Skip Fortran/C demo tests

Using clang with fsanitize results in an incompatible ASan runtime.
It results in the warning message "linked against incompatible ASan
runtimes". This only occurs with the mixed Fortran/C demo.

* tests/f77demo.at: Skip tests for clang compiling with fsanitize.
* tests/fcdemo.at: Skip tests for clang compiling with fsanitize.
This commit is contained in:
Ileana Dumitrescu 2024-05-24 21:13:13 +03:00
parent 2048edd2cb
commit 46576dfaf4
No known key found for this signature in database
GPG Key ID: 6570EA01146F7354
2 changed files with 48 additions and 0 deletions

View File

@ -295,6 +295,14 @@ AT_CHECK([$GREP 'Welcome to GNU libtool mixed C/Fortran demo!' stdout],
AT_SETUP([static library])
# Using clang with fsanitize results in an incompatible ASan runtime.
# It results in the warning message "linked against incompatible ASan
# runtimes". This only occurs with the mixed Fortran/C demo.
if $LIBTOOL --config | $EGREP '^CC="clang';
then
AT_CHECK([echo "$LDFLAGS" | $EGREP 'fsanitize=' && (exit 77)], 1)
fi
# Executing the static fprogram might be interactive on MSYS.
AT_KEYWORDS([interactive])
@ -313,6 +321,14 @@ AT_CLEANUP
AT_SETUP([shared library])
# Using clang with fsanitize results in an incompatible ASan runtime.
# It results in the warning message "linked against incompatible ASan
# runtimes". This only occurs with the mixed Fortran/C demo.
if $LIBTOOL --config | $EGREP '^CC="clang';
then
AT_CHECK([echo "$LDFLAGS" | $EGREP 'fsanitize=' && (exit 77)], 1)
fi
_LT_SETUP
LT_AT_CHECK_CONFIG([--disable-static],
@ -328,6 +344,14 @@ AT_CLEANUP
AT_SETUP([shared and static together])
# Using clang with fsanitize results in an incompatible ASan runtime.
# It results in the warning message "linked against incompatible ASan
# runtimes". This only occurs with the mixed Fortran/C demo.
if $LIBTOOL --config | $EGREP '^CC="clang';
then
AT_CHECK([echo "$LDFLAGS" | $EGREP 'fsanitize=' && (exit 77)], 1)
fi
_LT_SETUP
LT_AT_CHECK_CONFIG([],

View File

@ -309,6 +309,14 @@ AT_CHECK([$GREP 'Welcome to GNU libtool mixed C/Fortran demo!' stdout],
AT_SETUP([static library])
# Using clang with fsanitize results in an incompatible ASan runtime.
# It results in the warning message "linked against incompatible ASan
# runtimes". This only occurs with the mixed Fortran/C demo.
if $LIBTOOL --config | $EGREP '^CC="clang';
then
AT_CHECK([echo "$LDFLAGS" | $EGREP 'fsanitize=' && (exit 77)], 1)
fi
# Executing the static fprogram might be interactive on MSYS.
AT_KEYWORDS([interactive])
@ -327,6 +335,14 @@ AT_CLEANUP
AT_SETUP([shared library])
# Using clang with fsanitize results in an incompatible ASan runtime.
# It results in the warning message "linked against incompatible ASan
# runtimes". This only occurs with the mixed Fortran/C demo.
if $LIBTOOL --config | $EGREP '^CC="clang';
then
AT_CHECK([echo "$LDFLAGS" | $EGREP 'fsanitize=' && (exit 77)], 1)
fi
_LT_SETUP
LT_AT_CHECK_CONFIG([--disable-static],
@ -342,6 +358,14 @@ AT_CLEANUP
AT_SETUP([shared and static together])
# Using clang with fsanitize results in an incompatible ASan runtime.
# It results in the warning message "linked against incompatible ASan
# runtimes". This only occurs with the mixed Fortran/C demo.
if $LIBTOOL --config | $EGREP '^CC="clang';
then
AT_CHECK([echo "$LDFLAGS" | $EGREP 'fsanitize=' && (exit 77)], 1)
fi
_LT_SETUP
LT_AT_CHECK_CONFIG([],