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