From: Hubert Tong Date: Thu, 4 Jan 2018 01:15:52 +0000 (+0000) Subject: Replace cp -a in various Clang tests X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=90edd30337f6da4252b360cce1880c9f6c967318;p=clang Replace cp -a in various Clang tests 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 --- diff --git a/test/Modules/crash-vfs-path-emptydir-entries.m b/test/Modules/crash-vfs-path-emptydir-entries.m index d96adbbf99..a50ea869f4 100644 --- a/test/Modules/crash-vfs-path-emptydir-entries.m +++ b/test/Modules/crash-vfs-path-emptydir-entries.m @@ -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/ \ diff --git a/test/Modules/crash-vfs-path-symlink-component.m b/test/Modules/crash-vfs-path-symlink-component.m index 4723a77c7e..565a64fb5c 100644 --- a/test/Modules/crash-vfs-path-symlink-component.m +++ b/test/Modules/crash-vfs-path-symlink-component.m @@ -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 \ diff --git a/test/Modules/crash-vfs-path-symlink-topheader.m b/test/Modules/crash-vfs-path-symlink-topheader.m index 8e0c2d4c92..fea1f01c02 100644 --- a/test/Modules/crash-vfs-path-symlink-topheader.m +++ b/test/Modules/crash-vfs-path-symlink-topheader.m @@ -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 diff --git a/test/Modules/crash-vfs-umbrella-frameworks.m b/test/Modules/crash-vfs-umbrella-frameworks.m index 0c3981ddaa..a18acf576e 100644 --- a/test/Modules/crash-vfs-umbrella-frameworks.m +++ b/test/Modules/crash-vfs-umbrella-frameworks.m @@ -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 diff --git a/test/VFS/umbrella-framework-import-skipnonexist.m b/test/VFS/umbrella-framework-import-skipnonexist.m index 5c7cd6d9db..129f475fe7 100644 --- a/test/VFS/umbrella-framework-import-skipnonexist.m +++ b/test/VFS/umbrella-framework-import-skipnonexist.m @@ -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