summaryrefslogtreecommitdiffstats
path: root/clang/test/Driver/output-file-cleanup.c
Commit message (Collapse)AuthorAgeFilesLines
* test/Driver/output-file-cleanup.c: delete non-readable temporary fileFangrui Song2018-09-141-0/+1
| | | | | | %t-dir/2.c made tools (rsync, ripgrep, ...) sad (EACCES warning). llvm-svn: 342290
* [Driver] Make clang/cc conforms to UNIX standardSteven Wu2017-11-101-15/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: This is basically reverting r261774 with a tweak for clang-cl. UNIX standard states: When c99 encounters a compilation error that causes an object file not to be created, it shall write a diagnostic to standard error and continue to compile other source code operands, but it shall not perform the link phase and it shall return a non-zero exit status The same goes for c89 or cc. And they are all alias or shims pointing to clang on Darwin. The original commit was intended for CUDA so the error message doesn't get emit twice for both host and device. It seems that the clang driver has been changed to model the CUDA dependency differently. Now the driver behaves the same without this commit. rdar://problem/32223263 Reviewers: thakis, dexonsmith, tra Reviewed By: tra Subscribers: jlebar, cfe-commits Differential Revision: https://reviews.llvm.org/D39502 llvm-svn: 317860
* [clang] Get rid of "%T" expansionsKuba Mracek2017-08-151-23/+27
| | | | | | | | | | The %T lit expansion expands to a common directory shared between all the tests in the same directory, which is unexpected and unintuitive, and more importantly, it's been a source of subtle race conditions and flaky tests. In https://reviews.llvm.org/D35396, it was agreed that it would be best to simply ban %T and only keep %t, which is unique to each test. When a test needs a temporary directory, it can just create one using mkdir %t. This patch removes %T in clang. Differential Revision: https://reviews.llvm.org/D36437 llvm-svn: 310950
* Bail on compilation as soon as a job fails.Justin Lebar2016-02-241-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: (Re-land of r260448, which was reverted in r260522 due to a test failure in Driver/output-file-cleanup.c that only showed up in fresh builds.) Previously we attempted to be smart; if one job failed, we'd run all jobs that didn't depend on the failing job. Problem is, this doesn't work well for e.g. CUDA compilation without -save-temps. In this case, the device-side and host-side Assemble actions (which actually are responsible for preprocess, compile, backend, and assemble, since we're not saving temps) are necessarily distinct. So our clever heuristic doesn't help us, and we repeat every error message once for host and once for each device arch. The main effect of this change, other than fixing CUDA, is that if you pass multiple cc files to one instance of clang and you get a compile error, we'll stop when the first cc1 job fails. Reviewers: echristo Subscribers: cfe-commits, jhen, echristo, tra, rafael Differential Revision: http://reviews.llvm.org/D17217 llvm-svn: 261774
* Make test/Driver/output-file-cleanup.c hermetic.Justin Lebar2016-02-241-0/+2
| | | | | | | | | | | | | | | Summary: It checks that certain files do and exist, so make sure that they don't exist at the beginning of the test. This hid a failure in r260448; to see the failure, you had to run the test with a clean-ish objdir. Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D17216 llvm-svn: 261773
* Remove shell requirements from tests that use 'cd'Reid Kleckner2015-03-021-1/+0
| | | | | | | | Modules and Tooling tests in particular tend to want to change the cwd, so we were missing test coverage in this area on Windows. It should now be easier to write such portable tests. llvm-svn: 231029
* [driver] Refactor the driver so that a failing commands doesn't preventChad Rosier2013-01-291-0/+12
| | | | | | | | | | | subsequent commands from being executed. The diagnostics generation isn't designed for this use case, so add a note to fix this in the very near future. For now, just generated the diagnostics for the first failing command. Part of rdar://12984531 llvm-svn: 173825
* [driver] Revise this test to remove the dependency on the integrate assembler.Chad Rosier2013-01-281-17/+15
| | | | llvm-svn: 173715
* clang/test/Driver/output-file-cleanup.c: Add arm and powerpc to XFAIL.NAKAMURA Takumi2013-01-251-1/+1
| | | | | | ..."ppc" was not recognized here. llvm-svn: 173435
* clang/test/Driver/output-file-cleanup.c: Mark it as XFAIL:*-mingw32, ppc, ↵NAKAMURA Takumi2013-01-251-0/+2
| | | | | | for now. llvm-svn: 173428
* [driver] Associate a JobAction with each result file. This enables the driverChad Rosier2013-01-241-3/+16
| | | | | | | to delete result files for only those commands that fail. Part of rdar://12984531 llvm-svn: 173361
* Un-XFAIL this test on Darwin, it reportedly passes now.Peter Collingbourne2011-11-211-2/+0
| | | | llvm-svn: 145052
* Delete the depfile if we could not open a header file. We cannotPeter Collingbourne2011-11-211-0/+7
| | | | | | generate any reasonable depfile if a header is missing. llvm-svn: 145019
* Teach the driver about failure result files, which are compilationPeter Collingbourne2011-11-211-0/+20
output files that are valid regardless of whether the compilation succeeded or failed (but not if we crash). Add depfiles to the failure result file list. llvm-svn: 145018
OpenPOWER on IntegriCloud