]> granicus.if.org Git - clang/commitdiff
Replace cp -a in various Clang tests
authorHubert Tong <hubert.reinterpretcast@gmail.com>
Thu, 4 Jan 2018 01:15:52 +0000 (01:15 +0000)
committerHubert Tong <hubert.reinterpretcast@gmail.com>
Thu, 4 Jan 2018 01:15:52 +0000 (01:15 +0000)
Summary:
cp -a is neither part of POSIX nor the LSB. The nearest equivalent under
POSIX is cp -RPp; however, cp -R is sufficient for the intended purpose.

test/Modules/crash-vfs-headermaps.m is not updated since it requires
system-darwin anyway.

Reviewers: bruno

Reviewed By: bruno

Subscribers: bruno, rcraik, cfe-commits

Differential Revision: https://reviews.llvm.org/D41545

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@321778 91177308-0d34-0410-b5e6-96231b3b80d8

test/Modules/crash-vfs-path-emptydir-entries.m
test/Modules/crash-vfs-path-symlink-component.m
test/Modules/crash-vfs-path-symlink-topheader.m
test/Modules/crash-vfs-umbrella-frameworks.m
test/VFS/umbrella-framework-import-skipnonexist.m

index d96adbbf99ba240c2d8a72b75c2e129835d0c4ae..a50ea869f47643d895d51df2392428d7d50f157e 100644 (file)
@@ -8,7 +8,7 @@
 
 // RUN: rm -rf %t
 // RUN: mkdir -p %t/i %t/m %t %t/sysroot
-// RUN: cp -a %S/Inputs/crash-recovery/usr %t/i/
+// RUN: cp -R %S/Inputs/crash-recovery/usr %t/i/
 
 // RUN: not env FORCE_CLANG_DIAGNOSTICS_CRASH= TMPDIR=%t TEMP=%t TMP=%t \
 // RUN: %clang -fsyntax-only %s -I %/t/i -isysroot %/t/sysroot/ \
index 4723a77c7e93795f7557e781485ee5759dce35e9..565a64fb5c239cd955ef263af199765b3ad8b175 100644 (file)
@@ -8,7 +8,7 @@
 
 // RUN: rm -rf %t
 // RUN: mkdir -p %t/i %t/m %t %t/sysroot
-// RUN: cp -a %S/Inputs/crash-recovery/usr %t/i/
+// RUN: cp -R %S/Inputs/crash-recovery/usr %t/i/
 // RUN: ln -s include/tcl-private %t/i/usr/x
 
 // RUN: not env FORCE_CLANG_DIAGNOSTICS_CRASH= TMPDIR=%t TEMP=%t TMP=%t \
index 8e0c2d4c9226d1efbd157b31e086d477dc4c7082..fea1f01c02ae96417b070e2679f5f92bb7585ef7 100644 (file)
@@ -8,7 +8,7 @@
 
 // RUN: rm -rf %t
 // RUN: mkdir -p %t/i %t/m %t %t/sysroot
-// RUN: cp -a %S/Inputs/crash-recovery/usr %t/i/
+// RUN: cp -R %S/Inputs/crash-recovery/usr %t/i/
 // RUN: rm -f %t/i/usr/include/pthread_impl.h
 // RUN: ln -s pthread/pthread_impl.h %t/i/usr/include/pthread_impl.h
 
index 0c3981ddaa8872881d3fd9f12f365bc4121112c6..a18acf576ea3d3371710e48d0d2a397f443e48b4 100644 (file)
@@ -5,7 +5,7 @@
 
 // RUN: rm -rf %t
 // RUN: mkdir -p %t/i %t/m %t
-// RUN: cp -a %S/Inputs/crash-recovery/Frameworks %t/i/
+// RUN: cp -R %S/Inputs/crash-recovery/Frameworks %t/i/
 // RUN: mkdir -p %t/i/Frameworks/A.framework/Frameworks
 // RUN: ln -s ../../B.framework %t/i/Frameworks/A.framework/Frameworks/B.framework
 
index 5c7cd6d9db13ed628a5f823dea68ae032358d607..129f475fe774385ae4f642d594a49b948a353f31 100644 (file)
@@ -5,7 +5,7 @@
 
 // RUN: rm -rf %t
 // RUN: mkdir -p %t/vdir %t/outdir %t/cache
-// RUN: cp -a %S/Inputs/Bar.framework %t/outdir/
+// RUN: cp -R %S/Inputs/Bar.framework %t/outdir/
 //
 // RUN: sed -e "s:VDIR:%t/vdir:g" -e "s:OUT_DIR:%t/outdir:g" %S/Inputs/bar-headers.yaml > %t/vdir/bar-headers.yaml
 // RUN: rm -f %t/outdir/Bar.framework/Headers/B.h