Skip to content

Commit

Permalink
Replace cp -a in various Clang tests
Browse files Browse the repository at this point in the history
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

llvm-svn: 321778
  • Loading branch information
hubert-reinterpretcast committed Jan 4, 2018
1 parent 0228491 commit 8fbad0a
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion clang/test/Modules/crash-vfs-path-emptydir-entries.m
Expand Up @@ -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/ \
Expand Down
2 changes: 1 addition & 1 deletion clang/test/Modules/crash-vfs-path-symlink-component.m
Expand Up @@ -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 \
Expand Down
2 changes: 1 addition & 1 deletion clang/test/Modules/crash-vfs-path-symlink-topheader.m
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion clang/test/Modules/crash-vfs-umbrella-frameworks.m
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion clang/test/VFS/umbrella-framework-import-skipnonexist.m
Expand Up @@ -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
Expand Down

0 comments on commit 8fbad0a

Please sign in to comment.