[llvm] r177488 - Don't assume the test directory is writable, use %T to find a writable
Nick Lewycky
nicholas at mxc.ca
Tue Mar 19 22:59:40 PDT 2013
Author: nicholas
Date: Wed Mar 20 00:59:40 2013
New Revision: 177488
URL: http://llvm.org/viewvc/llvm-project?rev=177488&view=rev
Log:
Don't assume the test directory is writable, use %T to find a writable
directory.
Modified:
llvm/trunk/test/Transforms/GCOVProfiling/linkagename.ll
llvm/trunk/test/Transforms/GCOVProfiling/version.ll
Modified: llvm/trunk/test/Transforms/GCOVProfiling/linkagename.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/GCOVProfiling/linkagename.ll?rev=177488&r1=177487&r2=177488&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/GCOVProfiling/linkagename.ll (original)
+++ llvm/trunk/test/Transforms/GCOVProfiling/linkagename.ll Wed Mar 20 00:59:40 2013
@@ -1,8 +1,8 @@
-; RUN: echo '!9 = metadata !{metadata !"%s", metadata !0}' > %t1
+; RUN: echo '!9 = metadata !{metadata !"%T/linkagename.ll", metadata !0}' > %t1
; RUN: cat %s %t1 > %t2
; RUN: opt -insert-gcov-profiling -disable-output < %t2
-; RUN: grep _Z3foov %S/linkagename.gcno
-; RUN: rm %S/linkagename.gcno
+; RUN: grep _Z3foov %T/linkagename.gcno
+; RUN: rm %T/linkagename.gcno
define void @_Z3foov() {
entry:
Modified: llvm/trunk/test/Transforms/GCOVProfiling/version.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/GCOVProfiling/version.ll?rev=177488&r1=177487&r2=177488&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/GCOVProfiling/version.ll (original)
+++ llvm/trunk/test/Transforms/GCOVProfiling/version.ll Wed Mar 20 00:59:40 2013
@@ -1,12 +1,12 @@
-; RUN: echo '!9 = metadata !{metadata !"%s", metadata !0}' > %t1
+; RUN: echo '!9 = metadata !{metadata !"%T/version.ll", metadata !0}' > %t1
; RUN: cat %s %t1 > %t2
; RUN: opt -insert-gcov-profiling -disable-output < %t2
-; RUN: head -c12 %S/version.gcno | grep '^oncg\*204MVLL$'
-; RUN: rm %S/version.gcno
+; RUN: head -c12 %T/version.gcno | grep '^oncg\*204MVLL$'
+; RUN: rm %T/version.gcno
; RUN: not opt -insert-gcov-profiling -default-gcov-version=asdfasdf -disable-output < %t2
; RUN: opt -insert-gcov-profiling -default-gcov-version=407* -disable-output < %t2
-; RUN: head -c12 %S/version.gcno | grep '^oncg\*704MVLL$'
-; RUN: rm %S/version.gcno
+; RUN: head -c12 %T/version.gcno | grep '^oncg\*704MVLL$'
+; RUN: rm %T/version.gcno
define void @test() {
ret void, !dbg !8
More information about the llvm-commits
mailing list