[lld] r366784 - [test] Fix the test from the previous commit when run on windows. NFC.
Martin Storsjo via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 23 00:28:23 PDT 2019
Author: mstorsjo
Date: Tue Jul 23 00:28:23 2019
New Revision: 366784
URL: http://llvm.org/viewvc/llvm-project?rev=366784&view=rev
Log:
[test] Fix the test from the previous commit when run on windows. NFC.
Apparently the escaped dollar sign didn't work the same way in "echo -e"
on windows buildbots.
Added:
lld/trunk/test/COFF/Inputs/tlssup.s
Modified:
lld/trunk/test/COFF/tls_suffix_sorting.s
Added: lld/trunk/test/COFF/Inputs/tlssup.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/COFF/Inputs/tlssup.s?rev=366784&view=auto
==============================================================================
--- lld/trunk/test/COFF/Inputs/tlssup.s (added)
+++ lld/trunk/test/COFF/Inputs/tlssup.s Tue Jul 23 00:28:23 2019
@@ -0,0 +1,10 @@
+ .section .tls,"dw"
+ .byte 0xaa
+
+ .section .tls$ZZZ,"dw"
+ .byte 0xff
+
+ .globl _tls_index
+ .data
+_tls_index:
+ .int 0
Modified: lld/trunk/test/COFF/tls_suffix_sorting.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/COFF/tls_suffix_sorting.s?rev=366784&r1=366783&r2=366784&view=diff
==============================================================================
--- lld/trunk/test/COFF/tls_suffix_sorting.s (original)
+++ lld/trunk/test/COFF/tls_suffix_sorting.s Tue Jul 23 00:28:23 2019
@@ -1,7 +1,6 @@
# REQUIRES: x86
-# RUN: echo -e ".section .tls,\"dw\"\n .byte 0xaa\n .section .tls\$ZZZ,\"dw\"\n .byte 0xff\n .globl _tls_index\n .data\n _tls_index:\n .int 0" > %t.tlssup.s
-# RUN: llvm-mc -triple=x86_64-windows-gnu %t.tlssup.s -filetype=obj -o %t.tlssup.o
+# RUN: llvm-mc -triple=x86_64-windows-gnu %S/Inputs/tlssup.s -filetype=obj -o %t.tlssup.o
# RUN: llvm-mc -triple=x86_64-windows-gnu %s -filetype=obj -o %t.main.o
# RUN: lld-link -lldmingw -entry:main %t.main.o %t.tlssup.o -out:%t.exe
More information about the llvm-commits
mailing list