34 lines · c
1// Due to ln -sf:2// UNSUPPORTED: system-windows3// RUN: mkdir -p %t.real4// RUN: cd %t.real5// RUN: ln -sf %clang test-clang6// RUN: cd ..7// Important to remove %t.fake: If it already is a symlink to %t.real when8// `ln -sf %t.real %t.fake` runs, then that would symlink %t.real to itself,9// forming a cycle.10// RUN: rm -f %t.fake11// RUN: ln -sf %t.real %t.fake12// RUN: cd %t.fake13// RUN: ./test-clang -v -S %s 2>&1 \14// RUN: | FileCheck --check-prefix=CANONICAL %s15// RUN: ./test-clang -v -S %s 2>&1 \16// RUN: -no-canonical-prefixes \17// RUN: | FileCheck --check-prefix=NON-CANONICAL %s18// RUN: ./test-clang -v -S %s 2>&1 \19// RUN: -no-canonical-prefixes \20// RUN: -canonical-prefixes \21// RUN: | FileCheck --check-prefix=CANONICAL %s22// 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 %s27//28// FIXME: This should really be '.real'.29// CANONICAL: InstalledDir: {{.*}}bin30// CANONICAL: {{[/|\\]*}}clang{{.*}}" -cc131//32// NON-CANONICAL: InstalledDir: .{{$}}33// NON-CANONICAL: test-clang" -cc134