ld testsuite: Sanitize output from ld
authorDimitar Dimitrov <dimitar@dinux.eu>
Fri, 30 Dec 2016 10:39:59 +0000 (12:39 +0200)
committerAlan Modra <amodra@gmail.com>
Sat, 31 Dec 2016 01:30:42 +0000 (12:00 +1030)
commit517c4166988047036a57f4bb36e00458b51ade62
tree341ad312f9b9d54071e70f31bc9c2b285f57f295
parent3f66c01be30edcfaedd11d475078f78e464ca4a0
ld testsuite: Sanitize output from ld

Leading dashes from an LD error message confuse send_log, because the
string is taken to be an option.

This patch fixes the following DejaGnu error:

  --defsym:1: undefined symbol `foo2' referenced in expression
  failed with: <--defsym:1: undefined symbol `foo2' referenced in expression>, no expected output
  ERROR: tcl error sourcing .../ld/testsuite/ld-gc/gc.exp.
  ERROR: usage: send [args] string
      while executing
  "send_log "$comp_output\n""
      (procedure "run_dump_test" line 376)

* testsuite/lib/ld-lib.exp (run_dump_test): Pass -- to send_log.

Signed-off-by: Dimitar Dimitrov <dimitar@dinux.eu>
ld/ChangeLog
ld/testsuite/lib/ld-lib.exp
This page took 0.041983 seconds and 4 git commands to generate.