summaryrefslogtreecommitdiffstats
path: root/clang/test
diff options
context:
space:
mode:
authorHubert Tong <hubert.reinterpretcast@gmail.com>2019-07-26 20:09:37 +0000
committerHubert Tong <hubert.reinterpretcast@gmail.com>2019-07-26 20:09:37 +0000
commite3a0fc72d754e6a0da0e6691b45442a29e6e4270 (patch)
treedb3bbb286e2a13b6f4087780a05ac08a20e7cd81 /clang/test
parenta9ab31558caa28e9619647678e9118fde737abde (diff)
downloadbcm5719-llvm-e3a0fc72d754e6a0da0e6691b45442a29e6e4270.tar.gz
bcm5719-llvm-e3a0fc72d754e6a0da0e6691b45442a29e6e4270.zip
Partially revert rC365414; `ln -n` is not portable
This restores the use of `rm` instead of the non-portable `ln -n`. Such use being the status quo for the 12-month period between rC334972 and rC365414. llvm-svn: 367147
Diffstat (limited to 'clang/test')
-rw-r--r--clang/test/Driver/no-canonical-prefixes.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/clang/test/Driver/no-canonical-prefixes.c b/clang/test/Driver/no-canonical-prefixes.c
index 85de9f1d702..c222dd4aa6c 100644
--- a/clang/test/Driver/no-canonical-prefixes.c
+++ b/clang/test/Driver/no-canonical-prefixes.c
@@ -4,10 +4,11 @@
// RUN: cd %t.real
// RUN: ln -sf %clang test-clang
// RUN: cd ..
-// If %.fake 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.
-// The `-n` flag prevents this.
-// RUN: ln -sfn %t.real %t.fake
+// 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 -f %t.fake
+// 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
OpenPOWER on IntegriCloud