2015-07-26 12:36:39 +08:00
|
|
|
// Due to ln -sf:
|
2014-08-18 00:22:16 +08:00
|
|
|
// REQUIRES: shell
|
2018-06-19 02:50:35 +08:00
|
|
|
// RUN: rm -rf %t.real
|
2015-08-06 01:07:33 +08:00
|
|
|
// RUN: mkdir -p %t.real
|
|
|
|
// RUN: cd %t.real
|
2014-08-18 00:22:16 +08:00
|
|
|
// RUN: ln -sf %clang test-clang
|
2015-08-06 01:07:33 +08:00
|
|
|
// RUN: cd ..
|
2018-06-19 02:50:35 +08:00
|
|
|
// Important to remove %t.fake: If it already is a symlink to %t.real when
|
|
|
|
// `ln -sf %t.real %t.fake` runs, then that would symlink %t.real to itself,
|
|
|
|
// forming a cycle.
|
|
|
|
// RUN: rm -rf %t.fake
|
2015-08-06 01:07:33 +08:00
|
|
|
// RUN: ln -sf %t.real %t.fake
|
|
|
|
// RUN: cd %t.fake
|
|
|
|
// RUN: ./test-clang -v -S %s 2>&1 | FileCheck --check-prefix=CANONICAL %s
|
|
|
|
// RUN: ./test-clang -v -S %s -no-canonical-prefixes 2>&1 | FileCheck --check-prefix=NON-CANONICAL %s
|
|
|
|
//
|
|
|
|
// FIXME: This should really be '.real'.
|
|
|
|
// CANONICAL: InstalledDir: {{.*}}.fake
|
|
|
|
// CANONICAL: {{[/|\\]*}}clang{{.*}}" -cc1
|
|
|
|
//
|
|
|
|
// NON-CANONICAL: InstalledDir: .{{$}}
|
|
|
|
// NON-CANONICAL: test-clang" -cc1
|