diff options
author | Kai Tietz <kai.tietz@onevision.com> | 2010-03-31 21:10:14 +0000 |
---|---|---|
committer | Kai Tietz <kai.tietz@onevision.com> | 2010-03-31 21:10:14 +0000 |
commit | 77aabdd2d99a9f2171d284147fe8be83e3da3243 (patch) | |
tree | 94656c148af7d2f557e956a4f4cec9fe0a5a0cea | |
parent | 8072405bd6f570b75a030fbd81f25ac79260b066 (diff) | |
download | gdb-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.
-rw-r--r-- | ld/testsuite/ChangeLog | 5 | ||||
-rwxr-xr-x | ld/testsuite/ld-pe/pe-compile.exp | 2 |
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 |