summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2016-03-30 20:25:26 +0000
committerRui Ueyama <ruiu@google.com>2016-03-30 20:25:26 +0000
commit8dbbb2555b7e8f03202317e2ee95a8704d050692 (patch)
tree9b6e5c2de73ce31c9b376e52ba2afcc04a49f4ba
parent7326b69de431cb400b8f1a528843bba0303ba30d (diff)
downloadbcm5719-llvm-8dbbb2555b7e8f03202317e2ee95a8704d050692.tar.gz
bcm5719-llvm-8dbbb2555b7e8f03202317e2ee95a8704d050692.zip
Attempt to fix test failure on Windows.
Windows seems to complain that the file cannot be removed because it is still in use. We don't have to remove the file but instead just overwrite it, so do that. llvm-svn: 264915
-rw-r--r--lld/test/ELF/linkerscript-diagnostic.s12
1 files changed, 4 insertions, 8 deletions
diff --git a/lld/test/ELF/linkerscript-diagnostic.s b/lld/test/ELF/linkerscript-diagnostic.s
index 548b43666cf..725e64b0d49 100644
--- a/lld/test/ELF/linkerscript-diagnostic.s
+++ b/lld/test/ELF/linkerscript-diagnostic.s
@@ -3,8 +3,7 @@
## Take some valid script with multiline comments
## and check it actually works:
-# RUN: rm -f %t.script
-# RUN: echo "SECTIONS {" >> %t.script
+# RUN: echo "SECTIONS {" > %t.script
# RUN: echo ".text : { *(.text) }" >> %t.script
# RUN: echo ".keep : { *(.keep) } /*" >> %t.script
# RUN: echo "comment line 1" >> %t.script
@@ -14,8 +13,7 @@
## Change ":" to "+" at line 2, check that error
## message starts from correct line number:
-# RUN: rm -f %t.script
-# RUN: echo "SECTIONS {" >> %t.script
+# RUN: echo "SECTIONS {" > %t.script
# RUN: echo ".text + { *(.text) }" >> %t.script
# RUN: echo ".keep : { *(.keep) } /*" >> %t.script
# RUN: echo "comment line 1" >> %t.script
@@ -25,8 +23,7 @@
# ERR1: line 2:
## Change ":" to "+" at line 3 now, check correct error line number:
-# RUN: rm -f %t.script
-# RUN: echo "SECTIONS {" >> %t.script
+# RUN: echo "SECTIONS {" > %t.script
# RUN: echo ".text : { *(.text) }" >> %t.script
# RUN: echo ".keep + { *(.keep) } /*" >> %t.script
# RUN: echo "comment line 1" >> %t.script
@@ -37,8 +34,7 @@
## Change ":" to "+" at line 6, after multiline comment,
## check correct error line number:
-# RUN: rm -f %t.script
-# RUN: echo "SECTIONS {" >> %t.script
+# RUN: echo "SECTIONS {" > %t.script
# RUN: echo ".text : { *(.text) }" >> %t.script
# RUN: echo ".keep : { *(.keep) } /*" >> %t.script
# RUN: echo "comment line 1" >> %t.script
OpenPOWER on IntegriCloud