ahatanak created this revision. ahatanak added reviewers: delcypher, MaskRay, dblaikie. ahatanak added a project: clang. Herald added a project: All. ahatanak requested review of this revision.
These tests don't require invoking llvm-symbolizer. Repository: rG LLVM Github Monorepo https://reviews.llvm.org/D148851 Files: 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 Index: clang/test/Driver/rewrite-map-in-diagnostics.c =================================================================== --- clang/test/Driver/rewrite-map-in-diagnostics.c +++ clang/test/Driver/rewrite-map-in-diagnostics.c @@ -1,4 +1,5 @@ // RUN: export LSAN_OPTIONS=detect_leaks=0 +// RUN: export LLVM_DISABLE_SYMBOLIZATION=1 // RUN: rm -rf "%t" // RUN: mkdir -p "%t" // RUN: env TMPDIR="%t" TEMP="%t" TMP="%t" RC_DEBUG_OPTION=1 \ Index: clang/test/Driver/output-file-cleanup.c =================================================================== --- clang/test/Driver/output-file-cleanup.c +++ clang/test/Driver/output-file-cleanup.c @@ -1,4 +1,5 @@ // RUN: export LSAN_OPTIONS=detect_leaks=0 +// RUN: export LLVM_DISABLE_SYMBOLIZATION=1 // RUN: rm -f "%t.d" "%t1.s" "%t2.s" "%t3.s" "%t4.s" "%t5.s" // // RUN: touch %t.s Index: clang/test/Driver/emit-reproducer.c =================================================================== --- clang/test/Driver/emit-reproducer.c +++ clang/test/Driver/emit-reproducer.c @@ -1,4 +1,5 @@ // RUN: export LSAN_OPTIONS=detect_leaks=0 +// RUN: export LLVM_DISABLE_SYMBOLIZATION=1 // RUN: rm -rf %t && mkdir %t // RUN: echo "%s -fcrash-diagnostics-dir=%t -fsyntax-only" | sed -e 's/\\/\\\\/g' > %t.rsp Index: clang/test/Driver/crash-report.cpp =================================================================== --- clang/test/Driver/crash-report.cpp +++ clang/test/Driver/crash-report.cpp @@ -1,4 +1,5 @@ // RUN: export LSAN_OPTIONS=detect_leaks=0 +// RUN: export LLVM_DISABLE_SYMBOLIZATION=1 // RUN: rm -rf %t // RUN: mkdir %t Index: clang/test/Driver/crash-report-with-asserts.c =================================================================== --- clang/test/Driver/crash-report-with-asserts.c +++ clang/test/Driver/crash-report-with-asserts.c @@ -1,4 +1,5 @@ // RUN: export LSAN_OPTIONS=detect_leaks=0 +// RUN: export LLVM_DISABLE_SYMBOLIZATION=1 // RUN: rm -rf %t // RUN: mkdir %t Index: clang/test/Driver/crash-report-spaces.c =================================================================== --- clang/test/Driver/crash-report-spaces.c +++ clang/test/Driver/crash-report-spaces.c @@ -1,4 +1,5 @@ // RUN: export LSAN_OPTIONS=detect_leaks=0 +// RUN: export LLVM_DISABLE_SYMBOLIZATION=1 // RUN: rm -rf "%t" // RUN: mkdir "%t" // RUN: cp "%s" "%t/crash report spaces.c" Index: clang/test/Driver/crash-report-header.h =================================================================== --- clang/test/Driver/crash-report-header.h +++ clang/test/Driver/crash-report-header.h @@ -1,4 +1,5 @@ // RUN: export LSAN_OPTIONS=detect_leaks=0 +// RUN: export LLVM_DISABLE_SYMBOLIZATION=1 // 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 Index: clang/test/Driver/crash-report-clang-cl.cpp =================================================================== --- clang/test/Driver/crash-report-clang-cl.cpp +++ clang/test/Driver/crash-report-clang-cl.cpp @@ -1,4 +1,5 @@ // RUN: export LSAN_OPTIONS=detect_leaks=0 +// RUN: export LLVM_DISABLE_SYMBOLIZATION=1 // RUN: rm -rf %t // RUN: mkdir %t Index: clang/test/Driver/crash-diagnostics-dir.c =================================================================== --- clang/test/Driver/crash-diagnostics-dir.c +++ clang/test/Driver/crash-diagnostics-dir.c @@ -1,4 +1,5 @@ // RUN: export LSAN_OPTIONS=detect_leaks=0 +// RUN: export LLVM_DISABLE_SYMBOLIZATION=1 // RUN: rm -rf %t // RUN: not %clang -fcrash-diagnostics-dir=%t -c %s -o - 2>&1 | FileCheck %s #pragma clang __debug parser_crash Index: clang/test/Driver/crash-diagnostics-dir-3.c =================================================================== --- clang/test/Driver/crash-diagnostics-dir-3.c +++ clang/test/Driver/crash-diagnostics-dir-3.c @@ -1,4 +1,5 @@ // RUN: export LSAN_OPTIONS=detect_leaks=0 +// RUN: export LLVM_DISABLE_SYMBOLIZATION=1 // 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
Index: clang/test/Driver/rewrite-map-in-diagnostics.c =================================================================== --- clang/test/Driver/rewrite-map-in-diagnostics.c +++ clang/test/Driver/rewrite-map-in-diagnostics.c @@ -1,4 +1,5 @@ // RUN: export LSAN_OPTIONS=detect_leaks=0 +// RUN: export LLVM_DISABLE_SYMBOLIZATION=1 // RUN: rm -rf "%t" // RUN: mkdir -p "%t" // RUN: env TMPDIR="%t" TEMP="%t" TMP="%t" RC_DEBUG_OPTION=1 \ Index: clang/test/Driver/output-file-cleanup.c =================================================================== --- clang/test/Driver/output-file-cleanup.c +++ clang/test/Driver/output-file-cleanup.c @@ -1,4 +1,5 @@ // RUN: export LSAN_OPTIONS=detect_leaks=0 +// RUN: export LLVM_DISABLE_SYMBOLIZATION=1 // RUN: rm -f "%t.d" "%t1.s" "%t2.s" "%t3.s" "%t4.s" "%t5.s" // // RUN: touch %t.s Index: clang/test/Driver/emit-reproducer.c =================================================================== --- clang/test/Driver/emit-reproducer.c +++ clang/test/Driver/emit-reproducer.c @@ -1,4 +1,5 @@ // RUN: export LSAN_OPTIONS=detect_leaks=0 +// RUN: export LLVM_DISABLE_SYMBOLIZATION=1 // RUN: rm -rf %t && mkdir %t // RUN: echo "%s -fcrash-diagnostics-dir=%t -fsyntax-only" | sed -e 's/\\/\\\\/g' > %t.rsp Index: clang/test/Driver/crash-report.cpp =================================================================== --- clang/test/Driver/crash-report.cpp +++ clang/test/Driver/crash-report.cpp @@ -1,4 +1,5 @@ // RUN: export LSAN_OPTIONS=detect_leaks=0 +// RUN: export LLVM_DISABLE_SYMBOLIZATION=1 // RUN: rm -rf %t // RUN: mkdir %t Index: clang/test/Driver/crash-report-with-asserts.c =================================================================== --- clang/test/Driver/crash-report-with-asserts.c +++ clang/test/Driver/crash-report-with-asserts.c @@ -1,4 +1,5 @@ // RUN: export LSAN_OPTIONS=detect_leaks=0 +// RUN: export LLVM_DISABLE_SYMBOLIZATION=1 // RUN: rm -rf %t // RUN: mkdir %t Index: clang/test/Driver/crash-report-spaces.c =================================================================== --- clang/test/Driver/crash-report-spaces.c +++ clang/test/Driver/crash-report-spaces.c @@ -1,4 +1,5 @@ // RUN: export LSAN_OPTIONS=detect_leaks=0 +// RUN: export LLVM_DISABLE_SYMBOLIZATION=1 // RUN: rm -rf "%t" // RUN: mkdir "%t" // RUN: cp "%s" "%t/crash report spaces.c" Index: clang/test/Driver/crash-report-header.h =================================================================== --- clang/test/Driver/crash-report-header.h +++ clang/test/Driver/crash-report-header.h @@ -1,4 +1,5 @@ // RUN: export LSAN_OPTIONS=detect_leaks=0 +// RUN: export LLVM_DISABLE_SYMBOLIZATION=1 // 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 Index: clang/test/Driver/crash-report-clang-cl.cpp =================================================================== --- clang/test/Driver/crash-report-clang-cl.cpp +++ clang/test/Driver/crash-report-clang-cl.cpp @@ -1,4 +1,5 @@ // RUN: export LSAN_OPTIONS=detect_leaks=0 +// RUN: export LLVM_DISABLE_SYMBOLIZATION=1 // RUN: rm -rf %t // RUN: mkdir %t Index: clang/test/Driver/crash-diagnostics-dir.c =================================================================== --- clang/test/Driver/crash-diagnostics-dir.c +++ clang/test/Driver/crash-diagnostics-dir.c @@ -1,4 +1,5 @@ // RUN: export LSAN_OPTIONS=detect_leaks=0 +// RUN: export LLVM_DISABLE_SYMBOLIZATION=1 // RUN: rm -rf %t // RUN: not %clang -fcrash-diagnostics-dir=%t -c %s -o - 2>&1 | FileCheck %s #pragma clang __debug parser_crash Index: clang/test/Driver/crash-diagnostics-dir-3.c =================================================================== --- clang/test/Driver/crash-diagnostics-dir-3.c +++ clang/test/Driver/crash-diagnostics-dir-3.c @@ -1,4 +1,5 @@ // RUN: export LSAN_OPTIONS=detect_leaks=0 +// RUN: export LLVM_DISABLE_SYMBOLIZATION=1 // 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
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits