Changeset View
Changeset View
Standalone View
Standalone View
clang/test/Driver/no-canonical-prefixes.c
// Due to ln -sf: | // Due to ln -sf: | ||||
// REQUIRES: shell | // REQUIRES: shell | ||||
// RUN: mkdir -p %t.real | // RUN: mkdir -p %t.real | ||||
// RUN: cd %t.real | // RUN: cd %t.real | ||||
// RUN: ln -sf %clang test-clang | // RUN: ln -sf %clang_bin test-clang | ||||
// RUN: cd .. | // RUN: cd .. | ||||
// Important to remove %t.fake: If it already is a symlink to %t.real when | // 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, | // `ln -sf %t.real %t.fake` runs, then that would symlink %t.real to itself, | ||||
// forming a cycle. | // forming a cycle. | ||||
// RUN: rm -f %t.fake | // RUN: rm -f %t.fake | ||||
// RUN: ln -sf %t.real %t.fake | // RUN: ln -sf %t.real %t.fake | ||||
// RUN: cd %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 2>&1 | FileCheck --check-prefix=CANONICAL %s | ||||
// RUN: ./test-clang -v -S %s -no-canonical-prefixes 2>&1 | FileCheck --check-prefix=NON-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'. | // FIXME: This should really be '.real'. | ||||
// CANONICAL: InstalledDir: {{.*}}.fake | // CANONICAL: InstalledDir: {{.*}}.fake | ||||
// CANONICAL: {{[/|\\]*}}clang{{.*}}" -cc1 | // CANONICAL: {{[/|\\]*}}clang{{.*}}" -cc1 | ||||
// | // | ||||
// NON-CANONICAL: InstalledDir: .{{$}} | // NON-CANONICAL: InstalledDir: .{{$}} | ||||
// NON-CANONICAL: test-clang" -cc1 | // NON-CANONICAL: test-clang" -cc1 |