From 77aabdd2d99a9f2171d284147fe8be83e3da3243 Mon Sep 17 00:00:00 2001 From: Kai Tietz Date: Wed, 31 Mar 2010 21:10:14 +0000 Subject: [PATCH] 2010-03-31 Kai TIetz * ld-pe//pe-compile.exp (run_basefile_test): Trim result of wc before string compare. --- ld/testsuite/ChangeLog | 5 +++++ ld/testsuite/ld-pe/pe-compile.exp | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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 -- 2.30.2