[test][sanitizer] Improve test expectation
authorVitaly Buka <vitalybuka@google.com>
Mon, 8 May 2023 07:31:10 +0000 (00:31 -0700)
committerVitaly Buka <vitalybuka@google.com>
Mon, 8 May 2023 07:35:07 +0000 (00:35 -0700)
Now we can fix sanitizers for the test one by one.

compiler-rt/test/lsan/TestCases/create_thread_leak.cpp

index d04f5f6..79fe265 100644 (file)
@@ -7,7 +7,7 @@
 // FIXME: Remove "not". There is no leak.
 // False LEAK123 is broken for HWASAN.
 // False LEAK234 is broken for ASAN, HWASAN, LSAN.
-// RUN: %clangxx_lsan -pthread %s -o %t && %run not %t 10
+// RUN: %clangxx_lsan -pthread %s -o %t && %run %if asan %{ not %} %if hwasan %{ not %} %if lsan-standalone %{ not %} %t 10
 
 #include <pthread.h>
 #include <stdlib.h>