From: Kai Tietz Date: Wed, 31 Mar 2010 21:10:14 +0000 (+0000) Subject: 2010-03-31 Kai TIetz X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=77aabdd2d99a9f2171d284147fe8be83e3da3243;p=binutils-gdb.git 2010-03-31 Kai TIetz * ld-pe//pe-compile.exp (run_basefile_test): Trim result of wc before string compare. --- diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index 8075783fbb6..3731c1f14b1 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2010-03-31 Kai TIetz + + * ld-pe//pe-compile.exp (run_basefile_test): Trim result of wc + before string compare. + 2010-03-31 Matthew Gretton-Dann * ld-arm/script-type.sym: Fix test. diff --git a/ld/testsuite/ld-pe/pe-compile.exp b/ld/testsuite/ld-pe/pe-compile.exp index 07ad016b5db..d91271973ab 100755 --- a/ld/testsuite/ld-pe/pe-compile.exp +++ b/ld/testsuite/ld-pe/pe-compile.exp @@ -65,7 +65,7 @@ proc run_basefile_test { testname } { catch "exec wc -c tmpdir/$testname.base" err - if ![string match "0 tmpdir/$testname.base" $err] then { + if ![string match "0 tmpdir/$testname.base" [string trim $err]] then { send_log "$err\n" if { $verbose == 2 } then { verbose "$err" 2 } fail $testname