aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ld/testsuite/ChangeLog5
-rwxr-xr-xld/testsuite/ld-pe/pe-compile.exp2
2 files changed, 6 insertions, 1 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog
index 8075783..3731c1f 100644
--- a/ld/testsuite/ChangeLog
+++ b/ld/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2010-03-31 Kai TIetz <kai.tietz@onevision.com>
+
+ * ld-pe//pe-compile.exp (run_basefile_test): Trim result of wc
+ before string compare.
+
2010-03-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
* 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 07ad016..d912719 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