From 4678a24b7800f22ae41cec7341fe128f5d1aadd3 Mon Sep 17 00:00:00 2001 From: Sam McCall Date: Mon, 8 Jan 2018 15:05:01 +0000 Subject: 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 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'test/ARCMT') 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 -- cgit v1.2.3