mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-04-01 12:43:47 +00:00
[LLD] Improve the lit tests added by 272bd6f9cc86bf6b4dd6bd51e85c46db10e8b86a
The `cp` command will copy the permission bits from the original file to the new one, which will cause permission denied (no written access) for the following "echo" command in some system. Switch to use `cat` which is more robust.
This commit is contained in:
parent
a2a1dbb518
commit
71c83fb8b6
@ -3,7 +3,7 @@
|
||||
;; Common artifacts
|
||||
; RUN: opt --thinlto-bc -o %t1.o %s
|
||||
; RUN: opt --thinlto-bc --thinlto-split-lto-unit -o %t1_hybrid.o %s
|
||||
; RUN: cp %s %t1_regular.ll
|
||||
; RUN: cat %s > %t1_regular.ll
|
||||
; RUN: echo '!llvm.module.flags = !{!12, !13}' >> %t1_regular.ll
|
||||
; RUN: echo '!12 = !{i32 1, !"ThinLTO", i32 0}' >> %t1_regular.ll
|
||||
; RUN: echo '!13 = !{i32 1, !"EnableSplitLTOUnit", i32 1}' >> %t1_regular.ll
|
||||
|
@ -3,7 +3,7 @@
|
||||
;; Common artifacts
|
||||
; RUN: opt --thinlto-bc -o %t1.o %s
|
||||
; RUN: opt --thinlto-bc --thinlto-split-lto-unit -o %t1_hybrid.o %s
|
||||
; RUN: cp %s %t1_regular.ll
|
||||
; RUN: cat %s > %t1_regular.ll
|
||||
; RUN: echo '!llvm.module.flags = !{!6, !7}' >> %t1_regular.ll
|
||||
; RUN: echo '!6 = !{i32 1, !"ThinLTO", i32 0}' >> %t1_regular.ll
|
||||
; RUN: echo '!7 = !{i32 1, !"EnableSplitLTOUnit", i32 1}' >> %t1_regular.ll
|
||||
|
@ -3,7 +3,7 @@
|
||||
;; Common artifacts
|
||||
; RUN: opt --thinlto-bc -o %t1.o %s
|
||||
; RUN: opt --thinlto-bc --thinlto-split-lto-unit -o %t1_hybrid.o %s
|
||||
; RUN: cp %s %t1_regular.ll
|
||||
; RUN: cat %s > %t1_regular.ll
|
||||
; RUN: echo '!llvm.module.flags = !{!2, !3}' >> %t1_regular.ll
|
||||
; RUN: echo '!2 = !{i32 1, !"ThinLTO", i32 0}' >> %t1_regular.ll
|
||||
; RUN: echo '!3 = !{i32 1, !"EnableSplitLTOUnit", i32 1}' >> %t1_regular.ll
|
||||
|
Loading…
x
Reference in New Issue
Block a user