aboutsummaryrefslogtreecommitdiff
path: root/test/Driver/crash-report.c
AgeCommit message (Collapse)Author
2012-12-25Produce an actual error before attempting to attach notes to it when bailing outRichard Smith
due to FORCE_CLANG_DIAGNOSTICS_CRASH=1. Also add a test for that env var. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@171074 91177308-0d34-0410-b5e6-96231b3b80d8
2012-10-31[driver] Completely rework how superfluous options are stripped out of the crashChad Rosier
diagnostics script. This addresses the FIXME pertaining to quoted arguments. We also delineate between those flags that have an argument (e.g., -D macro, -MF file) and those that do not (e.g., -M, -MM, -MG). Finally, we add the -dwarf-debug-flags to the list of flags to be removed. rdar://12329974 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@167152 91177308-0d34-0410-b5e6-96231b3b80d8
2012-07-25[driver crash diagnostics] Strip -internal-isystem and ↵Chad Rosier
-internal-externc-isystem. rdar://11949066 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160752 91177308-0d34-0410-b5e6-96231b3b80d8
2012-07-25[driver crash diagnostics] Strip -idirafter, -iprefix, -iwithprefix,Chad Rosier
-iwithprefixbefore, and -isystem options, per Matt's suggestion. rdar://11949066 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160750 91177308-0d34-0410-b5e6-96231b3b80d8
2012-07-25[driver crash diagnostics] A few enhancements:Chad Rosier
-Strip -iquote and -M options. -Quote -D options to avoid problems with command line macros that include parens. rdar://11949066 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160743 91177308-0d34-0410-b5e6-96231b3b80d8
2012-07-17test/Driver/crash-report.c: Remove "REQUIRES: shell". env(1) can be used ↵NAKAMURA Takumi
also with gnuwin32. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160362 91177308-0d34-0410-b5e6-96231b3b80d8
2012-07-17[Win32] Rework crash-report since r145389.NAKAMURA Takumi
- lib/Driver/Driver.cpp, tools/driver/driver.cpp: Exit status should not be propagated, although clang driver should catch exceptions. - test/Driver/crash-report.c: Add REQUIRES:shell for now. FIXME: setenv should work also on Lit.InternalShellRunner. - test/Driver/crash-report.c: Remove XFAIL. Thanks to Chad, To point out the issue. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160343 91177308-0d34-0410-b5e6-96231b3b80d8
2012-07-17test/Driver/crash-report.c: Small tweaks. 1) Use %t instead %T for TMP. 2) ↵NAKAMURA Takumi
Set all of $TMPDIR, $TEMP and $TMP, or a certain host might set $TEMP. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160342 91177308-0d34-0410-b5e6-96231b3b80d8
2012-07-02test/Driver/crash-report.c: don't fail if there are no files left behind by ↵Richard Smith
a previous run of this test! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159615 91177308-0d34-0410-b5e6-96231b3b80d8
2012-07-02Improve crash reporting test coverage.David Blaikie
This adds validation that the * repro source is only rewrite-includes processed, not fully preprocessed. * repro script contains macro definitions (-DFOO=BAR). Based on suggestions/help by Matt Beaumont-Gay. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159605 91177308-0d34-0410-b5e6-96231b3b80d8
2012-06-30test/Driver/crash-report.c: Mark it as XFAIL on win32 hosts, for now. ↵NAKAMURA Takumi
Investigating. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159476 91177308-0d34-0410-b5e6-96231b3b80d8
2012-06-29Unbreak the test from r159469.David Blaikie
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159474 91177308-0d34-0410-b5e6-96231b3b80d8
2012-06-29Use -frewrite-includes for crash reports.David Blaikie
In future changes we should: * use __builtin_trap rather than derefing 'random' volatile pointers. * avoid dumping temporary files into /tmp when running tests, instead preferring a location that is properly cleaned up by lit. Review by Chandler Carruth. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159469 91177308-0d34-0410-b5e6-96231b3b80d8