[PATCH] [lld] Remove fragile regex from test

Rui Ueyama ruiu at google.com
Mon Jan 12 15:34:37 PST 2015


REPOSITORY
  rL LLVM

================
Comment at: test/elf/dynamic-undef.test:30
@@ +29,3 @@
+EXEC: Undefined symbol:
+EXEC-NEXT: shared.so-x86-64: puts
+SHLIB: Undefined symbol:
----------------
garious wrote:
> ruiu wrote:
> > I don't fully understand why now you need to split this into two lines. If "Undefined symbol" is not on the same line as "shared.so-x86-64: puts", why the previous test succeeded?
> I suspect FileCheck looks for "no more than one newline".  How about {{.+[\\/]}} instead?
Maybe

  EXEC: Undefined symbol: {{.*}}/shared.so-x86-64: puts

is enough?

http://reviews.llvm.org/D6937

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/






More information about the llvm-commits mailing list