[tests] Fix format-binary-non-ascii.s to work with Python 3 on Windows
authorAaron Smith <aaron.smith@microsoft.com>
Sat, 7 Apr 2018 00:55:26 +0000 (00:55 +0000)
committerAaron Smith <aaron.smith@microsoft.com>
Sat, 7 Apr 2018 00:55:26 +0000 (00:55 +0000)
Some platforms interpret the pound sign as one character. Platforms that use
Python 2.x actually interpret it as two characters because in the Python 2.x
version of lit, the string used for the file name is a byte string and the pound
sign is two bytes.

Patch by Stella Stamenova!

llvm-svn: 329472

lld/test/ELF/format-binary-non-ascii.s

index 5a3ad96..36263e5 100644 (file)
@@ -4,9 +4,9 @@
 # RUN: ld.lld -o %t.elf %t£.o --format=binary %t£.o
 # RUN: llvm-readobj -symbols %t.elf | FileCheck %s
 
-# CHECK: Name: _binary_{{[a-zA-Z0-9_]+}}test_ELF_Output_format_binary_non_ascii_s_tmp___o_start
-# CHECK: Name: _binary_{{[a-zA-Z0-9_]+}}test_ELF_Output_format_binary_non_ascii_s_tmp___o_end
-# CHECK: Name: _binary_{{[a-zA-Z0-9_]+}}test_ELF_Output_format_binary_non_ascii_s_tmp___o_size
+# CHECK: Name: _binary_{{[a-zA-Z0-9_]+}}test_ELF_Output_format_binary_non_ascii_s_tmp_{{[_]+}}o_start
+# CHECK: Name: _binary_{{[a-zA-Z0-9_]+}}test_ELF_Output_format_binary_non_ascii_s_tmp_{{[_]+}}o_end
+# CHECK: Name: _binary_{{[a-zA-Z0-9_]+}}test_ELF_Output_format_binary_non_ascii_s_tmp_{{[_]+}}o_size
 
 .text
 .align 4