2010-03-31 Kai TIetz <kai.tietz@onevision.com>
authorKai Tietz <kai.tietz@onevision.com>
Wed, 31 Mar 2010 21:10:14 +0000 (21:10 +0000)
committerKai Tietz <kai.tietz@onevision.com>
Wed, 31 Mar 2010 21:10:14 +0000 (21:10 +0000)
        * ld-pe//pe-compile.exp (run_basefile_test): Trim result of wc
        before string compare.

ld/testsuite/ChangeLog
ld/testsuite/ld-pe/pe-compile.exp

index 8075783fbb6a40fab21086beb3f0e023b3d124c9..3731c1f14b1ba1e862e9120d9e024aa0ae5ec640 100644 (file)
@@ -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.
index 07ad016b5dbc819216e45469e98f60d519fa3937..d91271973ab68bd44fec2d699b3fbc8c01b5fb1f 100755 (executable)
@@ -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