1 // Due to ln -sf:
2 // REQUIRES: shell
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 | FileCheck --check-prefix=CANONICAL %s
14 // RUN: ./test-clang -v -S %s -no-canonical-prefixes 2>&1 | FileCheck --check-prefix=NON-CANONICAL %s
15 //
16 // FIXME: This should really be '.real'.
17 // CANONICAL: InstalledDir: {{.*}}.fake
18 // CANONICAL: {{[/|\\]*}}clang{{.*}}" -cc1
19 //
20 // NON-CANONICAL: InstalledDir: .{{$}}
21 // NON-CANONICAL: test-clang" -cc1
22