From 1c576054cbfb9dfcacd2ee9d209792ccc95327cc Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Wed, 24 Feb 2016 22:47:41 +0000 Subject: [PATCH] Make test more portable. We just need to show that an error is printed, so no need to check for a system dependent message. llvm-svn: 261802 --- lld/test/ELF/invalid-linkerscript.test | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/lld/test/ELF/invalid-linkerscript.test b/lld/test/ELF/invalid-linkerscript.test index 1b6d7e2..e088166 100644 --- a/lld/test/ELF/invalid-linkerscript.test +++ b/lld/test/ELF/invalid-linkerscript.test @@ -9,46 +9,46 @@ # RUN: mkdir -p %t.dir -## Note that we are using "cannot open no-such-file: No such file or directory" -## as a marker that the linker keep going when it found an error. That specific -## error message is not related to the linker script tests. +## Note that we are using "cannot open no-such-file: " as a marker that the +## linker keep going when it found an error. That specific error message is not +## related to the linker script tests. # RUN: echo foobar > %t1 # RUN: not ld.lld %t1 no-such-file 2>&1 | FileCheck -check-prefix=ERR1 %s # ERR1: unknown directive: foobar -# ERR1: cannot open no-such-file: No such file or directory +# ERR1: cannot open no-such-file: # RUN: echo "foo \"bar" > %t2 # RUN: not ld.lld %t2 no-such-file 2>&1 | FileCheck -check-prefix=ERR2 %s # ERR2: unclosed quote -# ERR2: cannot open no-such-file: No such file or directory +# ERR2: cannot open no-such-file: # RUN: echo "/*" > %t3 # RUN: not ld.lld %t3 no-such-file 2>&1 | FileCheck -check-prefix=ERR3 %s # ERR3: unclosed comment -# ERR3: cannot open no-such-file: No such file or directory +# ERR3: cannot open no-such-file: # RUN: echo "EXTERN (" > %t4 # RUN: not ld.lld %t4 no-such-file 2>&1 | FileCheck -check-prefix=ERR4 %s # ERR4: unexpected EOF -# ERR4: cannot open no-such-file: No such file or directory +# ERR4: cannot open no-such-file: # RUN: echo "EXTERN (" > %t5 # RUN: not ld.lld %t5 no-such-file 2>&1 | FileCheck -check-prefix=ERR5 %s # ERR5: unexpected EOF -# ERR5: cannot open no-such-file: No such file or directory +# ERR5: cannot open no-such-file: # RUN: echo "EXTERN xyz" > %t6 # RUN: not ld.lld %t6 no-such-file 2>&1 | FileCheck -check-prefix=ERR6 %s # ERR6: ( expected, but got xyz -# ERR6: cannot open no-such-file: No such file or directory +# ERR6: cannot open no-such-file: # RUN: echo "INCLUDE /no/such/file" > %t7 # RUN: not ld.lld %t7 no-such-file 2>&1 | FileCheck -check-prefix=ERR7 %s # ERR7: cannot open /no/such/file -# ERR7: cannot open no-such-file: No such file or directory +# ERR7: cannot open no-such-file: # RUN: echo "OUTPUT_FORMAT(x y z)" > %t8 # RUN: not ld.lld %t8 no-such-file 2>&1 | FileCheck -check-prefix=ERR8 %s # ERR8: unexpected token: y -# ERR8: cannot open no-such-file: No such file or directory +# ERR8: cannot open no-such-file: -- 2.7.4