aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Fitzgerald <garious@gmail.com>2015-01-13 00:12:04 +0000
committerGreg Fitzgerald <garious@gmail.com>2015-01-13 00:12:04 +0000
commitb38c112e4fb486574bd630da75b8c69c961dcb2f (patch)
tree78e9457ba752412e0d48fee47ec2c7bf4d783481
parentbed30716ea1893a75335ebaf3f066338fad807d5 (diff)
Remove fragile regex from test
Differential Revision: http://reviews.llvm.org/D6937 git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@225739 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/elf/dynamic-undef.test8
-rw-r--r--test/elf/filenotfound.test2
2 files changed, 5 insertions, 5 deletions
diff --git a/test/elf/dynamic-undef.test b/test/elf/dynamic-undef.test
index 7f57d38c0..7506b21b3 100644
--- a/test/elf/dynamic-undef.test
+++ b/test/elf/dynamic-undef.test
@@ -26,9 +26,9 @@ RUN: %p/Inputs/shared.so-x86-64 -o %t.useundefines -e main -shared \
RUN: --use-shlib-undefines --no-allow-shlib-undefined 2> %t2
RUN: llvm-readobj -symbols %t.useundefines | FileCheck -check-prefix=SHLIB-UNDEF-SYMBOLS %s
-EXEC: Undefined symbol: {{[+-_A-Za-z0-9.\\/:]+}}shared.so-x86-64: puts
-SHLIB: Undefined symbol: {{[+-_A-Za-z0-9.\\/:]+}}shared.so-x86-64: puts
-EXEC-NOT: Undefined symbol: {{[+-_A-Za-z0-9.\\/:]+}}shared.so-x86-64: weakfoo
-SHLIB-NOT: Undefined symbol: {{[+-_A-Za-z0-9.\\/:]+}}shared.so-x86-64: weakfoo
+EXEC: Undefined symbol: {{.+[\\/]}}shared.so-x86-64: puts
+SHLIB: Undefined symbol: {{.+[\\/]}}shared.so-x86-64: puts
+EXEC-NOT: Undefined symbol: {{.+[\\/]}}shared.so-x86-64: weakfoo
+SHLIB-NOT: Undefined symbol: {{.+[\\/]}}shared.so-x86-64: weakfoo
SHLIB-NOUNDEF-NOT: Name: puts
SHLIB-UNDEF-SYMBOLS: Name: puts
diff --git a/test/elf/filenotfound.test b/test/elf/filenotfound.test
index 00ac699c1..d64568f2e 100644
--- a/test/elf/filenotfound.test
+++ b/test/elf/filenotfound.test
@@ -1,3 +1,3 @@
# Check that a file that cannot be found results in a proper error message
RUN: not lld -flavor gnu -target x86_64 %p/Inputs/nofile.o 2>&1 | FileCheck %s
-#CHECK: lld: cannot find file {{[+-_A-Za-z0-9.\\/:]+}}nofile.o
+#CHECK: lld: cannot find file {{.+[\\/]}}nofile.o