Skip to content

Commit

Permalink
[HWASAN][LSAN] Disable tests which don't pass in HWASAN+LSAN mode
Browse files Browse the repository at this point in the history
Reviewed By: vitalybuka

Differential Revision: https://reviews.llvm.org/D145727
  • Loading branch information
kstoimenov committed Mar 10, 2023
1 parent adc5168 commit 011b4d4
Show file tree
Hide file tree
Showing 24 changed files with 25 additions and 1 deletion.
1 change: 1 addition & 0 deletions 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
Expand Down
1 change: 1 addition & 0 deletions 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
Expand Down
1 change: 1 addition & 0 deletions 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

Expand Down
1 change: 1 addition & 0 deletions 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
Expand Down
1 change: 1 addition & 0 deletions 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"
Expand Down
1 change: 1 addition & 0 deletions 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

Expand Down
1 change: 1 addition & 0 deletions clang/test/Driver/crash-report.cpp
@@ -1,3 +1,4 @@
// RUN: export LSAN_OPTIONS=detect_leaks=0
// RUN: rm -rf %t
// RUN: mkdir %t

Expand Down
1 change: 1 addition & 0 deletions 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
Expand Down
1 change: 1 addition & 0 deletions 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
Expand Down
1 change: 1 addition & 0 deletions 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 \
Expand Down
1 change: 1 addition & 0 deletions 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" \
Expand Down
1 change: 1 addition & 0 deletions clang/test/Index/crash-recovery-modules.m
Expand Up @@ -12,6 +12,7 @@

// REQUIRES: crash-recovery
// UNSUPPORTED: libstdcxx-safe-mode
// UNSUPPORTED: hwasan

@import Crash;

Expand Down
1 change: 1 addition & 0 deletions 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" \
Expand Down
1 change: 1 addition & 0 deletions 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
Expand Down
1 change: 1 addition & 0 deletions 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
Expand Down
1 change: 1 addition & 0 deletions 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
Expand Down
1 change: 1 addition & 0 deletions clang/test/Index/error-on-deserialized.c
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions 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
Expand Down
1 change: 1 addition & 0 deletions 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
Expand Down
1 change: 1 addition & 0 deletions 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 | \
Expand Down
1 change: 1 addition & 0 deletions 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.
Expand Down
1 change: 1 addition & 0 deletions 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'
1 change: 1 addition & 0 deletions 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.

Expand Down
3 changes: 2 additions & 1 deletion 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$)?}}
# CHECK: Error running interesting-ness test: {{(Executable "[[FILENAME]]" doesn't exist$)?(program not executable$)?}}

0 comments on commit 011b4d4

Please sign in to comment.