]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
tests: Skip Fortran/C demo tests
authorIleana Dumitrescu <ileanadumitrescu95@gmail.com>
Fri, 24 May 2024 18:13:13 +0000 (21:13 +0300)
committerIleana Dumitrescu <ileanadumitrescu95@gmail.com>
Mon, 27 May 2024 13:14:50 +0000 (16:14 +0300)
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.

tests/f77demo.at
tests/fcdemo.at

index 1026a468eb207b7689f158a29ec12af81823141b..bd2084a2f88996241c7c1b21cc816d97d6a47ad0 100644 (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([],
index 48ff13ac7619ca20202fcb1ea3b7add6a4b485a4..6f708b3ceda1207341b084f662fee9dd977a0cd9 100644 (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([],