aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-pe
diff options
context:
space:
mode:
authorKai Tietz <kai.tietz@onevision.com>2010-03-31 21:10:14 +0000
committerKai Tietz <kai.tietz@onevision.com>2010-03-31 21:10:14 +0000
commit77aabdd2d99a9f2171d284147fe8be83e3da3243 (patch)
tree94656c148af7d2f557e956a4f4cec9fe0a5a0cea /ld/testsuite/ld-pe
parent8072405bd6f570b75a030fbd81f25ac79260b066 (diff)
downloadgdb-77aabdd2d99a9f2171d284147fe8be83e3da3243.zip
gdb-77aabdd2d99a9f2171d284147fe8be83e3da3243.tar.gz
gdb-77aabdd2d99a9f2171d284147fe8be83e3da3243.tar.bz2
2010-03-31 Kai TIetz <kai.tietz@onevision.com>
* ld-pe//pe-compile.exp (run_basefile_test): Trim result of wc before string compare.
Diffstat (limited to 'ld/testsuite/ld-pe')
-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