This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] ubsan: Do not run the testsuite if ubsan does not work at all


> I normally build with --disable-libsanitizer, because the sanitizers
> testresults are very unreproducable, so just annoying noise.  This however
> makes most (all?) ubsan testcases fail, since they want to load a shared
> library that does not exist.

Same here, but I also have the problem with tsan testcases.

> gcc/testsuite/
> 	* lib/ubsan-dg.exp (check_effective_target_fsanitize_undefined):
> 	Check if testcases run without errors, not just if they compile.

I additionally need:

        * lib/tsan-dg.exp (check_effective_target_fsanitize_thread):
        Check if testcases run without errors, not just if they compile.


-- 
Eric Botcazou
Index: lib/tsan-dg.exp
===================================================================
--- lib/tsan-dg.exp	(revision 219217)
+++ lib/tsan-dg.exp	(working copy)
@@ -18,7 +18,7 @@
 # code, 0 otherwise.
 
 proc check_effective_target_fsanitize_thread {} {
-    return [check_no_compiler_messages fsanitize_thread executable {
+    return [check_runtime fsanitize_thread {
 	int main (void) { return 0; }
     } "-fsanitize=thread"]
 }

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]