| 1 |
// Due to ln -sf: |
| 2 |
// UNSUPPORTED: system-windows |
| 3 |
// RUN: mkdir -p %t.real |
| 4 |
// RUN: cd %t.real |
| 5 |
// RUN: ln -sf %clang test-clang |
| 6 |
// RUN: cd .. |
| 7 |
// Important to remove %t.fake: If it already is a symlink to %t.real when |
| 8 |
// `ln -sf %t.real %t.fake` runs, then that would symlink %t.real to itself, |
| 9 |
// forming a cycle. |
| 10 |
// RUN: rm -f %t.fake |
| 11 |
// RUN: ln -sf %t.real %t.fake |
| 12 |
// RUN: cd %t.fake |
| 13 |
// RUN: ./test-clang -v -S %s 2>&1 \ |
| 14 |
// RUN: | FileCheck --check-prefix=CANONICAL %s |
| 15 |
// RUN: ./test-clang -v -S %s 2>&1 \ |
| 16 |
// RUN: -no-canonical-prefixes \ |
| 17 |
// RUN: | FileCheck --check-prefix=NON-CANONICAL %s |
| 18 |
// RUN: ./test-clang -v -S %s 2>&1 \ |
| 19 |
// RUN: -no-canonical-prefixes \ |
| 20 |
// RUN: -canonical-prefixes \ |
| 21 |
// RUN: | FileCheck --check-prefix=CANONICAL %s |
| 22 |
// RUN: ./test-clang -v -S %s 2>&1 \ |
| 23 |
// RUN: -no-canonical-prefixes \ |
| 24 |
// RUN: -canonical-prefixes \ |
| 25 |
// RUN: -no-canonical-prefixes \ |
| 26 |
// RUN: | FileCheck --check-prefix=NON-CANONICAL %s |
| 27 |
// |
| 28 |
// FIXME: This should really be '.real'. |
| 29 |
// CANONICAL: InstalledDir: {{.*}}bin |
| 30 |
// CANONICAL: {{[/|\\]*}}clang{{.*}}" -cc1 |
| 31 |
// |
| 32 |
// NON-CANONICAL: InstalledDir: .{{$}} |
| 33 |
// NON-CANONICAL: test-clang" -cc1 |