| 1 |
// RUN: not %clang -### -coverage -working-directory /no/such/dir/ input 2>&1 | FileCheck %s |
| 2 |
// RUN: not %clang -### -coverage -working-directory %p/Inputs no_such_file.cpp -c 2>&1 | FileCheck %s --check-prefix=CHECK_NO_FILE |
| 3 |
// RUN: %clang -### -coverage -working-directory %p/Inputs pchfile.cpp -c 2>&1 | FileCheck %s --check-prefix=CHECK_WORKS |
| 4 |
|
| 5 |
// CHECK: unable to set working directory: /no/such/dir/ |
| 6 |
|
| 7 |
// CHECK_NO_FILE: no such file or directory: 'no_such_file.cpp' |
| 8 |
|
| 9 |
// CHECK_WORKS: "-fdebug-compilation-dir={{[^"]+}}test{{/|\\\\}}Driver{{/|\\\\}}Inputs" |
| 10 |
// CHECK_WORKS: "-coverage-notes-file={{[^"]+}}test{{/|\\\\}}Driver{{/|\\\\}}Inputs{{/|\\\\}}pchfile.gcno" |
| 11 |
// CHECK_WORKS: "-working-directory" "{{[^"]+}}test{{/|\\\\}}Driver{{/|\\\\}}Inputs" |