aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-pe/pe-compile.exp
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-pe/pe-compile.exp')
-rwxr-xr-xld/testsuite/ld-pe/pe-compile.exp2
1 files changed, 1 insertions, 1 deletions
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