mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-24 06:10:12 +00:00
[HWASAN][LSAN] Disable tests which don't pass in HWASAN+LSAN mode
Reviewed By: vitalybuka Differential Revision: https://reviews.llvm.org/D145727
This commit is contained in:
parent
adc5168d71
commit
011b4d4706
@ -1,3 +1,4 @@
|
|||||||
|
// RUN: export LSAN_OPTIONS=detect_leaks=0
|
||||||
// RUN: rm -rf %t
|
// RUN: rm -rf %t
|
||||||
// RUN: not env CLANG_CRASH_DIAGNOSTICS_DIR=%t %clang -c %s -o - 2>&1 | FileCheck %s
|
// RUN: not env CLANG_CRASH_DIAGNOSTICS_DIR=%t %clang -c %s -o - 2>&1 | FileCheck %s
|
||||||
#pragma clang __debug parser_crash
|
#pragma clang __debug parser_crash
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
// RUN: export LSAN_OPTIONS=detect_leaks=0
|
||||||
// RUN: rm -rf %t
|
// RUN: rm -rf %t
|
||||||
// RUN: not %clang -fcrash-diagnostics-dir=%t -c %s -o - 2>&1 | FileCheck %s
|
// RUN: not %clang -fcrash-diagnostics-dir=%t -c %s -o - 2>&1 | FileCheck %s
|
||||||
#pragma clang __debug parser_crash
|
#pragma clang __debug parser_crash
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
// RUN: export LSAN_OPTIONS=detect_leaks=0
|
||||||
// RUN: rm -rf %t
|
// RUN: rm -rf %t
|
||||||
// RUN: mkdir %t
|
// RUN: mkdir %t
|
||||||
|
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
// RUN: export LSAN_OPTIONS=detect_leaks=0
|
||||||
// RUN: rm -rf %t
|
// RUN: rm -rf %t
|
||||||
// RUN: mkdir %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
|
// RUN: env TMPDIR="%t" TEMP="%t" TMP="%t" RC_DEBUG_OPTIONS=1 not %clang -fsyntax-only %s 2>&1 | FileCheck %s
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
// RUN: export LSAN_OPTIONS=detect_leaks=0
|
||||||
// RUN: rm -rf "%t"
|
// RUN: rm -rf "%t"
|
||||||
// RUN: mkdir "%t"
|
// RUN: mkdir "%t"
|
||||||
// RUN: cp "%s" "%t/crash report spaces.c"
|
// RUN: cp "%s" "%t/crash report spaces.c"
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
// RUN: export LSAN_OPTIONS=detect_leaks=0
|
||||||
// RUN: rm -rf %t
|
// RUN: rm -rf %t
|
||||||
// RUN: mkdir %t
|
// RUN: mkdir %t
|
||||||
|
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
// RUN: export LSAN_OPTIONS=detect_leaks=0
|
||||||
// RUN: rm -rf %t
|
// RUN: rm -rf %t
|
||||||
// RUN: mkdir %t
|
// RUN: mkdir %t
|
||||||
|
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
// RUN: export LSAN_OPTIONS=detect_leaks=0
|
||||||
// RUN: rm -rf %t && mkdir %t
|
// RUN: rm -rf %t && mkdir %t
|
||||||
|
|
||||||
// RUN: echo "%s -fcrash-diagnostics-dir=%t -fsyntax-only" | sed -e 's/\\/\\\\/g' > %t.rsp
|
// RUN: echo "%s -fcrash-diagnostics-dir=%t -fsyntax-only" | sed -e 's/\\/\\\\/g' > %t.rsp
|
||||||
|
@ -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: rm -f "%t.d" "%t1.s" "%t2.s" "%t3.s" "%t4.s" "%t5.s"
|
||||||
//
|
//
|
||||||
// RUN: touch %t.s
|
// RUN: touch %t.s
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
// RUN: export LSAN_OPTIONS=detect_leaks=0
|
||||||
// RUN: rm -rf "%t"
|
// RUN: rm -rf "%t"
|
||||||
// RUN: mkdir -p "%t"
|
// RUN: mkdir -p "%t"
|
||||||
// RUN: env TMPDIR="%t" TEMP="%t" TMP="%t" RC_DEBUG_OPTION=1 \
|
// RUN: env TMPDIR="%t" TEMP="%t" TMP="%t" RC_DEBUG_OPTION=1 \
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
// RUN: export LSAN_OPTIONS=detect_leaks=0
|
||||||
// RUN: env CINDEXTEST_EDITING=1 CINDEXTEST_PREAMBLE_FILE=%t-preamble.pch \
|
// RUN: env CINDEXTEST_EDITING=1 CINDEXTEST_PREAMBLE_FILE=%t-preamble.pch \
|
||||||
// RUN: not c-index-test -code-completion-at=%s:20:1 \
|
// RUN: not c-index-test -code-completion-at=%s:20:1 \
|
||||||
// RUN: "-remap-file=%s,%S/Inputs/crash-recovery-code-complete-remap.c" \
|
// RUN: "-remap-file=%s,%S/Inputs/crash-recovery-code-complete-remap.c" \
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
|
|
||||||
// REQUIRES: crash-recovery
|
// REQUIRES: crash-recovery
|
||||||
// UNSUPPORTED: libstdcxx-safe-mode
|
// UNSUPPORTED: libstdcxx-safe-mode
|
||||||
|
// UNSUPPORTED: hwasan
|
||||||
|
|
||||||
@import Crash;
|
@import Crash;
|
||||||
|
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
// RUN: export LSAN_OPTIONS=detect_leaks=0
|
||||||
// RUN: env CINDEXTEST_EDITING=1 CINDEXTEST_PREAMBLE_FILE=%t-preamble.pch \
|
// RUN: env CINDEXTEST_EDITING=1 CINDEXTEST_PREAMBLE_FILE=%t-preamble.pch \
|
||||||
// RUN: not c-index-test -test-load-source-reparse 1 local \
|
// RUN: not c-index-test -test-load-source-reparse 1 local \
|
||||||
// RUN: -remap-file="%s,%S/Inputs/crash-recovery-reparse-remap.c" \
|
// RUN: -remap-file="%s,%S/Inputs/crash-recovery-reparse-remap.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: not c-index-test -test-load-source all %s 2> %t.err
|
||||||
// RUN: FileCheck < %t.err -check-prefix=CHECK-LOAD-SOURCE-CRASH %s
|
// RUN: FileCheck < %t.err -check-prefix=CHECK-LOAD-SOURCE-CRASH %s
|
||||||
// CHECK-LOAD-SOURCE-CRASH: Unable to load translation unit
|
// CHECK-LOAD-SOURCE-CRASH: Unable to load translation unit
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
// RUN: export LSAN_OPTIONS=detect_leaks=0
|
||||||
// RUN: rm -rf %t
|
// RUN: rm -rf %t
|
||||||
// RUN: mkdir %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
|
// 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
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
// RUN: export LSAN_OPTIONS=detect_leaks=0
|
||||||
// RUN: rm -rf %t
|
// RUN: rm -rf %t
|
||||||
// RUN: mkdir %t
|
// RUN: mkdir %t
|
||||||
// RUN: env CINDEXTEST_INVOCATION_EMISSION_PATH=%t not c-index-test -test-load-source all %s
|
// RUN: env CINDEXTEST_INVOCATION_EMISSION_PATH=%t not c-index-test -test-load-source all %s
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
|
|
||||||
// This tests that we will correctly error out on the deserialized decl.
|
// 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: 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: 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
|
// RUN: -Xclang -error-on-deserialized-decl=NestedVar1
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
// RUN: export LSAN_OPTIONS=detect_leaks=0
|
||||||
// RUN: rm -rf %t
|
// RUN: rm -rf %t
|
||||||
// RUN: mkdir %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
|
// 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
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
// RUN: export LSAN_OPTIONS=detect_leaks=0
|
||||||
// RUN: rm -rf %t
|
// RUN: rm -rf %t
|
||||||
// RUN: mkdir %t
|
// RUN: mkdir %t
|
||||||
// RUN: env CINDEXTEST_INVOCATION_EMISSION_PATH=%t not c-index-test -test-load-source all %s
|
// RUN: env CINDEXTEST_INVOCATION_EMISSION_PATH=%t not c-index-test -test-load-source all %s
|
||||||
|
@ -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: not llvm-dis -disable-output %p/Inputs/invalid-empty.bc 2>&1 | \
|
||||||
RUN: FileCheck --check-prefix=INVALID-EMPTY %s
|
RUN: FileCheck --check-prefix=INVALID-EMPTY %s
|
||||||
RUN: not llvm-dis -disable-output %p/Inputs/invalid-pr20485.bc 2>&1 | \
|
RUN: not llvm-dis -disable-output %p/Inputs/invalid-pr20485.bc 2>&1 | \
|
||||||
|
@ -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
|
# 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.
|
## This also tests that we don't assert due to an active macro instantiation.
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# RUN: export LSAN_OPTIONS=detect_leaks=0
|
||||||
# RUN: not llvm-mc -M invalid /dev/null 2>&1 | FileCheck %s
|
# RUN: not llvm-mc -M invalid /dev/null 2>&1 | FileCheck %s
|
||||||
|
|
||||||
# CHECK: error: invalid disassembler option 'invalid'
|
# CHECK: error: invalid disassembler option 'invalid'
|
||||||
|
@ -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
|
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.
|
CHECK: ir-basic.proftext: Merge IR generated profile with Clang generated profile.
|
||||||
|
|
||||||
|
@ -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
|
# 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$)?}}
|
||||||
|
Loading…
Reference in New Issue
Block a user