From 4678a24b7800f22ae41cec7341fe128f5d1aadd3 Mon Sep 17 00:00:00 2001 From: Sam McCall Date: Mon, 8 Jan 2018 15:05:01 +0000 Subject: [PATCH] Avoid assumption that lit tests are writable. NFC git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@321997 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/ARCMT/releases-driver.m | 2 +- test/ARCMT/releases-driver.m.result | 2 +- test/ARCMT/with-arc-mode-modify.m | 2 +- test/ARCMT/with-arc-mode-modify.m.result | 2 +- test/PCH/verify_pch.m | 2 +- test/VFS/real-path-found-first.m | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/test/ARCMT/releases-driver.m b/test/ARCMT/releases-driver.m index 7b1d2fb8e5..3dd546fd6c 100644 --- a/test/ARCMT/releases-driver.m +++ b/test/ARCMT/releases-driver.m @@ -1,5 +1,5 @@ // RUN: %clang_cc1 -fblocks -fsyntax-only -fobjc-arc -x objective-c %s.result -// RUN: cp %s %t +// RUN: cat %s > %t // RUN: %clang_cc1 -arcmt-modify -triple x86_64-apple-macosx10.6 -x objective-c %t // RUN: diff %t %s.result // RUN: rm %t diff --git a/test/ARCMT/releases-driver.m.result b/test/ARCMT/releases-driver.m.result index 4c864bd2a8..e9aa2d5ac4 100644 --- a/test/ARCMT/releases-driver.m.result +++ b/test/ARCMT/releases-driver.m.result @@ -1,5 +1,5 @@ // RUN: %clang_cc1 -fblocks -fsyntax-only -fobjc-arc -x objective-c %s.result -// RUN: cp %s %t +// RUN: cat %s > %t // RUN: %clang_cc1 -arcmt-modify -triple x86_64-apple-macosx10.6 -x objective-c %t // RUN: diff %t %s.result // RUN: rm %t diff --git a/test/ARCMT/with-arc-mode-modify.m b/test/ARCMT/with-arc-mode-modify.m index fbbd630700..bc4662de23 100644 --- a/test/ARCMT/with-arc-mode-modify.m +++ b/test/ARCMT/with-arc-mode-modify.m @@ -1,5 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -fobjc-arc -x objective-c %s.result -// RUN: cp %s %t +// RUN: cat %s > %t // RUN: %clang_cc1 -arcmt-modify -fsyntax-only -fobjc-arc -x objective-c %t // RUN: diff %t %s.result // RUN: rm %t diff --git a/test/ARCMT/with-arc-mode-modify.m.result b/test/ARCMT/with-arc-mode-modify.m.result index 631f276516..b847c13f6b 100644 --- a/test/ARCMT/with-arc-mode-modify.m.result +++ b/test/ARCMT/with-arc-mode-modify.m.result @@ -1,5 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -fobjc-arc -x objective-c %s.result -// RUN: cp %s %t +// RUN: cat %s > %t // RUN: %clang_cc1 -arcmt-modify -fsyntax-only -fobjc-arc -x objective-c %t // RUN: diff %t %s.result // RUN: rm %t diff --git a/test/PCH/verify_pch.m b/test/PCH/verify_pch.m index e905f2537c..d50e23456e 100644 --- a/test/PCH/verify_pch.m +++ b/test/PCH/verify_pch.m @@ -2,7 +2,7 @@ // RUN: rm -rf %t // RUN: mkdir -p %t/usr/include // RUN: echo '// empty' > %t/usr/include/sys_header.h -// RUN: cp %s %t.h +// RUN: cat %s > %t.h // // Precompile // RUN: %clang_cc1 -isystem %t/usr/include -x objective-c-header -emit-pch -o %t.pch %t.h diff --git a/test/VFS/real-path-found-first.m b/test/VFS/real-path-found-first.m index 5838aa36c4..cc5a0024ea 100644 --- a/test/VFS/real-path-found-first.m +++ b/test/VFS/real-path-found-first.m @@ -7,7 +7,7 @@ // REQUIRES: shell // RUN: rm -rf %t %t-cache %t.pch // RUN: mkdir -p %t/SomeFramework.framework/Modules -// RUN: cp %S/Inputs/some_frame_module.map %t/SomeFramework.framework/Modules/module.modulemap +// RUN: cat %S/Inputs/some_frame_module.map > %t/SomeFramework.framework/Modules/module.modulemap // RUN: sed -e "s:INPUT_DIR:%S/Inputs:g" -e "s:OUT_DIR:%t:g" %S/Inputs/vfsoverlay.yaml > %t.yaml // Build -- 2.40.0