3 // RUN: mkdir -p %t.real
5 // RUN: ln -sf %clang test-clang
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,
11 // RUN: ln -sf %t.real %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
28 // FIXME: This should really be '.real'.
29 // CANONICAL: InstalledDir: {{.*}}.fake
30 // CANONICAL: {{[/|\\]*}}clang{{.*}}" -cc1
32 // NON-CANONICAL: InstalledDir: .{{$}}
33 // NON-CANONICAL: test-clang" -cc1