[lld] r264915 - Attempt to fix test failure on Windows.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 30 13:25:26 PDT 2016


Author: ruiu
Date: Wed Mar 30 15:25:26 2016
New Revision: 264915

URL: http://llvm.org/viewvc/llvm-project?rev=264915&view=rev
Log:
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.

Modified:
    lld/trunk/test/ELF/linkerscript-diagnostic.s

Modified: lld/trunk/test/ELF/linkerscript-diagnostic.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/linkerscript-diagnostic.s?rev=264915&r1=264914&r2=264915&view=diff
==============================================================================
--- lld/trunk/test/ELF/linkerscript-diagnostic.s (original)
+++ lld/trunk/test/ELF/linkerscript-diagnostic.s Wed Mar 30 15:25:26 2016
@@ -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




More information about the llvm-commits mailing list