mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-28 19:31:58 +00:00
Don't assume the test directory is writable, use %T to find a writable
directory. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@177488 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9fb49695fa
commit
12bcb4be08
@ -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:
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user