Author: Kirill Stoimenov Date: 2023-03-10T00:51:55Z New Revision: 011b4d4706eea722d63438892afefdb8152b7b62
URL: https://github.com/llvm/llvm-project/commit/011b4d4706eea722d63438892afefdb8152b7b62 DIFF: https://github.com/llvm/llvm-project/commit/011b4d4706eea722d63438892afefdb8152b7b62.diff LOG: [HWASAN][LSAN] Disable tests which don't pass in HWASAN+LSAN mode Reviewed By: vitalybuka Differential Revision: https://reviews.llvm.org/D145727 Added: Modified: clang/test/Driver/crash-diagnostics-dir-3.c clang/test/Driver/crash-diagnostics-dir.c clang/test/Driver/crash-report-clang-cl.cpp clang/test/Driver/crash-report-header.h clang/test/Driver/crash-report-spaces.c clang/test/Driver/crash-report-with-asserts.c clang/test/Driver/crash-report.cpp clang/test/Driver/emit-reproducer.c clang/test/Driver/output-file-cleanup.c clang/test/Driver/rewrite-map-in-diagnostics.c clang/test/Index/crash-recovery-code-complete.c clang/test/Index/crash-recovery-modules.m clang/test/Index/crash-recovery-reparse.c clang/test/Index/crash-recovery.c clang/test/Index/create-libclang-completion-reproducer.c clang/test/Index/create-libclang-parsing-reproducer.c clang/test/Index/error-on-deserialized.c clang/test/Index/record-completion-invocation.c clang/test/Index/record-parsing-invocation.c llvm/test/Bitcode/invalid.test llvm/test/MC/AsmParser/unmatched-if-macro.s llvm/test/tools/llvm-mc/disassembler-options.test llvm/test/tools/llvm-profdata/merge-incompatible.test llvm/test/tools/llvm-reduce/fail-execute-test.test Removed: ################################################################################ diff --git a/clang/test/Driver/crash-diagnostics-dir-3.c b/clang/test/Driver/crash-diagnostics-dir-3.c index 9529e30021045..a91bc48d7e462 100644 --- a/clang/test/Driver/crash-diagnostics-dir-3.c +++ b/clang/test/Driver/crash-diagnostics-dir-3.c @@ -1,3 +1,4 @@ +// RUN: export LSAN_OPTIONS=detect_leaks=0 // RUN: rm -rf %t // RUN: not env CLANG_CRASH_DIAGNOSTICS_DIR=%t %clang -c %s -o - 2>&1 | FileCheck %s #pragma clang __debug parser_crash diff --git a/clang/test/Driver/crash-diagnostics-dir.c b/clang/test/Driver/crash-diagnostics-dir.c index 44c4af67649a7..16382eff1cde7 100644 --- a/clang/test/Driver/crash-diagnostics-dir.c +++ b/clang/test/Driver/crash-diagnostics-dir.c @@ -1,3 +1,4 @@ +// RUN: export LSAN_OPTIONS=detect_leaks=0 // RUN: rm -rf %t // RUN: not %clang -fcrash-diagnostics-dir=%t -c %s -o - 2>&1 | FileCheck %s #pragma clang __debug parser_crash diff --git a/clang/test/Driver/crash-report-clang-cl.cpp b/clang/test/Driver/crash-report-clang-cl.cpp index 159792d3eb61a..963c3b6d0ab03 100644 --- a/clang/test/Driver/crash-report-clang-cl.cpp +++ b/clang/test/Driver/crash-report-clang-cl.cpp @@ -1,3 +1,4 @@ +// RUN: export LSAN_OPTIONS=detect_leaks=0 // RUN: rm -rf %t // RUN: mkdir %t diff --git a/clang/test/Driver/crash-report-header.h b/clang/test/Driver/crash-report-header.h index c1b0ab367683c..04865a0cc300f 100644 --- a/clang/test/Driver/crash-report-header.h +++ b/clang/test/Driver/crash-report-header.h @@ -1,3 +1,4 @@ +// RUN: export LSAN_OPTIONS=detect_leaks=0 // RUN: rm -rf %t // RUN: mkdir %t // RUN: env TMPDIR="%t" TEMP="%t" TMP="%t" RC_DEBUG_OPTIONS=1 not %clang -fsyntax-only %s 2>&1 | FileCheck %s diff --git a/clang/test/Driver/crash-report-spaces.c b/clang/test/Driver/crash-report-spaces.c index e6da0873673aa..b4d8ac1f57e83 100644 --- a/clang/test/Driver/crash-report-spaces.c +++ b/clang/test/Driver/crash-report-spaces.c @@ -1,3 +1,4 @@ +// RUN: export LSAN_OPTIONS=detect_leaks=0 // RUN: rm -rf "%t" // RUN: mkdir "%t" // RUN: cp "%s" "%t/crash report spaces.c" diff --git a/clang/test/Driver/crash-report-with-asserts.c b/clang/test/Driver/crash-report-with-asserts.c index 7a614aa8fe025..686c49f339fb7 100644 --- a/clang/test/Driver/crash-report-with-asserts.c +++ b/clang/test/Driver/crash-report-with-asserts.c @@ -1,3 +1,4 @@ +// RUN: export LSAN_OPTIONS=detect_leaks=0 // RUN: rm -rf %t // RUN: mkdir %t diff --git a/clang/test/Driver/crash-report.cpp b/clang/test/Driver/crash-report.cpp index 455597c9c0fc7..59eee65af57ee 100644 --- a/clang/test/Driver/crash-report.cpp +++ b/clang/test/Driver/crash-report.cpp @@ -1,3 +1,4 @@ +// RUN: export LSAN_OPTIONS=detect_leaks=0 // RUN: rm -rf %t // RUN: mkdir %t diff --git a/clang/test/Driver/emit-reproducer.c b/clang/test/Driver/emit-reproducer.c index b8d6841077c4d..18e1b4e41b91d 100644 --- a/clang/test/Driver/emit-reproducer.c +++ b/clang/test/Driver/emit-reproducer.c @@ -1,3 +1,4 @@ +// RUN: export LSAN_OPTIONS=detect_leaks=0 // RUN: rm -rf %t && mkdir %t // RUN: echo "%s -fcrash-diagnostics-dir=%t -fsyntax-only" | sed -e 's/\\/\\\\/g' > %t.rsp diff --git a/clang/test/Driver/output-file-cleanup.c b/clang/test/Driver/output-file-cleanup.c index a5ca3e546f532..3628df8192652 100644 --- a/clang/test/Driver/output-file-cleanup.c +++ b/clang/test/Driver/output-file-cleanup.c @@ -1,3 +1,4 @@ +// RUN: export LSAN_OPTIONS=detect_leaks=0 // RUN: rm -f "%t.d" "%t1.s" "%t2.s" "%t3.s" "%t4.s" "%t5.s" // // RUN: touch %t.s diff --git a/clang/test/Driver/rewrite-map-in-diagnostics.c b/clang/test/Driver/rewrite-map-in-diagnostics.c index d49d0ec8358fb..5ca8b897e199a 100644 --- a/clang/test/Driver/rewrite-map-in-diagnostics.c +++ b/clang/test/Driver/rewrite-map-in-diagnostics.c @@ -1,3 +1,4 @@ +// RUN: export LSAN_OPTIONS=detect_leaks=0 // RUN: rm -rf "%t" // RUN: mkdir -p "%t" // RUN: env TMPDIR="%t" TEMP="%t" TMP="%t" RC_DEBUG_OPTION=1 \ diff --git a/clang/test/Index/crash-recovery-code-complete.c b/clang/test/Index/crash-recovery-code-complete.c index dfb47316dc9d7..e7454c6f61022 100644 --- a/clang/test/Index/crash-recovery-code-complete.c +++ b/clang/test/Index/crash-recovery-code-complete.c @@ -1,3 +1,4 @@ +// RUN: export LSAN_OPTIONS=detect_leaks=0 // RUN: env CINDEXTEST_EDITING=1 CINDEXTEST_PREAMBLE_FILE=%t-preamble.pch \ // RUN: not c-index-test -code-completion-at=%s:20:1 \ // RUN: "-remap-file=%s,%S/Inputs/crash-recovery-code-complete-remap.c" \ diff --git a/clang/test/Index/crash-recovery-modules.m b/clang/test/Index/crash-recovery-modules.m index 72e25a0fbf5f2..edd2c62dd093c 100644 --- a/clang/test/Index/crash-recovery-modules.m +++ b/clang/test/Index/crash-recovery-modules.m @@ -12,6 +12,7 @@ // REQUIRES: crash-recovery // UNSUPPORTED: libstdcxx-safe-mode +// UNSUPPORTED: hwasan @import Crash; diff --git a/clang/test/Index/crash-recovery-reparse.c b/clang/test/Index/crash-recovery-reparse.c index 2e4b51a8ca4b2..813d9d38b9307 100644 --- a/clang/test/Index/crash-recovery-reparse.c +++ b/clang/test/Index/crash-recovery-reparse.c @@ -1,3 +1,4 @@ +// RUN: export LSAN_OPTIONS=detect_leaks=0 // RUN: env CINDEXTEST_EDITING=1 CINDEXTEST_PREAMBLE_FILE=%t-preamble.pch \ // RUN: not c-index-test -test-load-source-reparse 1 local \ // RUN: -remap-file="%s,%S/Inputs/crash-recovery-reparse-remap.c" \ diff --git a/clang/test/Index/crash-recovery.c b/clang/test/Index/crash-recovery.c index bf13c69eb1279..5e1da41076dae 100644 --- a/clang/test/Index/crash-recovery.c +++ b/clang/test/Index/crash-recovery.c @@ -1,3 +1,4 @@ +// RUN: export LSAN_OPTIONS=detect_leaks=0 // RUN: not c-index-test -test-load-source all %s 2> %t.err // RUN: FileCheck < %t.err -check-prefix=CHECK-LOAD-SOURCE-CRASH %s // CHECK-LOAD-SOURCE-CRASH: Unable to load translation unit diff --git a/clang/test/Index/create-libclang-completion-reproducer.c b/clang/test/Index/create-libclang-completion-reproducer.c index 5683e10075bf5..4eef599ba79dd 100644 --- a/clang/test/Index/create-libclang-completion-reproducer.c +++ b/clang/test/Index/create-libclang-completion-reproducer.c @@ -1,3 +1,4 @@ +// RUN: export LSAN_OPTIONS=detect_leaks=0 // RUN: rm -rf %t // RUN: mkdir %t // RUN: env CINDEXTEST_INVOCATION_EMISSION_PATH=%t not c-index-test -code-completion-at=%s:10:1 "-remap-file=%s,%S/Inputs/record-parsing-invocation-remap.c" %s diff --git a/clang/test/Index/create-libclang-parsing-reproducer.c b/clang/test/Index/create-libclang-parsing-reproducer.c index 0cfbfb14481dc..1372f3b64cc87 100644 --- a/clang/test/Index/create-libclang-parsing-reproducer.c +++ b/clang/test/Index/create-libclang-parsing-reproducer.c @@ -1,3 +1,4 @@ +// RUN: export LSAN_OPTIONS=detect_leaks=0 // RUN: rm -rf %t // RUN: mkdir %t // RUN: env CINDEXTEST_INVOCATION_EMISSION_PATH=%t not c-index-test -test-load-source all %s diff --git a/clang/test/Index/error-on-deserialized.c b/clang/test/Index/error-on-deserialized.c index 78b77e5cddaa4..ced34833fd45d 100644 --- a/clang/test/Index/error-on-deserialized.c +++ b/clang/test/Index/error-on-deserialized.c @@ -3,6 +3,7 @@ // This tests that we will correctly error out on the deserialized decl. +// RUN: export LSAN_OPTIONS=detect_leaks=0 // RUN: c-index-test -write-pch %t.h.pch %S/targeted-top.h // RUN: env CINDEXTEST_FAILONERROR=1 not c-index-test -cursor-at=%S/targeted-nested1.h:2:16 %s -include %t.h \ // RUN: -Xclang -error-on-deserialized-decl=NestedVar1 diff --git a/clang/test/Index/record-completion-invocation.c b/clang/test/Index/record-completion-invocation.c index c249565a4b681..4b667134fa2d4 100644 --- a/clang/test/Index/record-completion-invocation.c +++ b/clang/test/Index/record-completion-invocation.c @@ -1,3 +1,4 @@ +// RUN: export LSAN_OPTIONS=detect_leaks=0 // RUN: rm -rf %t // RUN: mkdir %t // RUN: env CINDEXTEST_INVOCATION_EMISSION_PATH=%t not c-index-test -code-completion-at=%s:10:1 "-remap-file=%s,%S/Inputs/record-parsing-invocation-remap.c" %s diff --git a/clang/test/Index/record-parsing-invocation.c b/clang/test/Index/record-parsing-invocation.c index 3254e58aef048..e0c4cdb05fb00 100644 --- a/clang/test/Index/record-parsing-invocation.c +++ b/clang/test/Index/record-parsing-invocation.c @@ -1,3 +1,4 @@ +// RUN: export LSAN_OPTIONS=detect_leaks=0 // RUN: rm -rf %t // RUN: mkdir %t // RUN: env CINDEXTEST_INVOCATION_EMISSION_PATH=%t not c-index-test -test-load-source all %s diff --git a/llvm/test/Bitcode/invalid.test b/llvm/test/Bitcode/invalid.test index cb0677cf64303..464cf787feddf 100644 --- a/llvm/test/Bitcode/invalid.test +++ b/llvm/test/Bitcode/invalid.test @@ -1,3 +1,4 @@ +RUN: export LSAN_OPTIONS=detect_leaks=0 RUN: not llvm-dis -disable-output %p/Inputs/invalid-empty.bc 2>&1 | \ RUN: FileCheck --check-prefix=INVALID-EMPTY %s RUN: not llvm-dis -disable-output %p/Inputs/invalid-pr20485.bc 2>&1 | \ diff --git a/llvm/test/MC/AsmParser/unmatched-if-macro.s b/llvm/test/MC/AsmParser/unmatched-if-macro.s index 8ccbd5c043b45..d158d2cd10c28 100644 --- a/llvm/test/MC/AsmParser/unmatched-if-macro.s +++ b/llvm/test/MC/AsmParser/unmatched-if-macro.s @@ -1,3 +1,4 @@ +# RUN: export LSAN_OPTIONS=detect_leaks=0 # RUN: not llvm-mc -triple x86_64 %s -o /dev/null 2>&1 | FileCheck %s ## This also tests that we don't assert due to an active macro instantiation. diff --git a/llvm/test/tools/llvm-mc/disassembler-options.test b/llvm/test/tools/llvm-mc/disassembler-options.test index f9dc2eceac67c..a7fd8b1b9f8d3 100644 --- a/llvm/test/tools/llvm-mc/disassembler-options.test +++ b/llvm/test/tools/llvm-mc/disassembler-options.test @@ -1,3 +1,4 @@ +# RUN: export LSAN_OPTIONS=detect_leaks=0 # RUN: not llvm-mc -M invalid /dev/null 2>&1 | FileCheck %s # CHECK: error: invalid disassembler option 'invalid' diff --git a/llvm/test/tools/llvm-profdata/merge-incompatible.test b/llvm/test/tools/llvm-profdata/merge-incompatible.test index db77af9a8a54a..fca72a452069e 100644 --- a/llvm/test/tools/llvm-profdata/merge-incompatible.test +++ b/llvm/test/tools/llvm-profdata/merge-incompatible.test @@ -1,3 +1,4 @@ +RUN: export LSAN_OPTIONS=detect_leaks=0 RUN: not llvm-profdata merge %p/Inputs/fe-basic.proftext %p/Inputs/ir-basic.proftext -o /dev/null 2>&1 | FileCheck %s CHECK: ir-basic.proftext: Merge IR generated profile with Clang generated profile. diff --git a/llvm/test/tools/llvm-reduce/fail-execute-test.test b/llvm/test/tools/llvm-reduce/fail-execute-test.test index 1582ece88e9cb..f60107f97327f 100644 --- a/llvm/test/tools/llvm-reduce/fail-execute-test.test +++ b/llvm/test/tools/llvm-reduce/fail-execute-test.test @@ -1,3 +1,4 @@ +# RUN: export LSAN_OPTIONS=detect_leaks=0 # RUN: not llvm-reduce --test=%s.NotAFileInTestingDir %p/Inputs/test-output-format.ll 2>&1 | FileCheck -DFILENAME=%s.NotAFileInTestingDir --strict-whitespace %s -# CHECK: Error running interesting-ness test: {{(Executable "[[FILENAME]]" doesn't exist$)?(program not executable$)?}} \ No newline at end of file +# CHECK: Error running interesting-ness test: {{(Executable "[[FILENAME]]" doesn't exist$)?(program not executable$)?}} _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits