aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-elfvers
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2008-01-28 16:41:05 +0000
committerNick Clifton <nickc@redhat.com>2008-01-28 16:41:05 +0000
commita0a21afef580d360d994a31c353ceb3ad664ed89 (patch)
treee3f9d3f49ebcb3ac408950b108ceae7af494f62b /ld/testsuite/ld-elfvers
parenta65c77b98d1cfa5447933ebe2133d794af6c4483 (diff)
downloadgdb-a0a21afef580d360d994a31c353ceb3ad664ed89.zip
gdb-a0a21afef580d360d994a31c353ceb3ad664ed89.tar.gz
gdb-a0a21afef580d360d994a31c353ceb3ad664ed89.tar.bz2
* ld-elfvers/vers.exp (test_ar): Sort the expected output so that
it has matches the ordering of the obtained output.
Diffstat (limited to 'ld/testsuite/ld-elfvers')
-rw-r--r--ld/testsuite/ld-elfvers/vers.exp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ld/testsuite/ld-elfvers/vers.exp b/ld/testsuite/ld-elfvers/vers.exp
index f163c21..e2f658d 100644
--- a/ld/testsuite/ld-elfvers/vers.exp
+++ b/ld/testsuite/ld-elfvers/vers.exp
@@ -121,7 +121,7 @@ proc test_ar { test lib object expect } {
catch "exec $nm --print-armap $tmpdir/$lib | grep \\\ in\\\ | egrep VERS\\\|bar\\\|foo | sort > $tmpdir/nm.out" exec_output
if [string match "" $exec_output] then {
- catch "exec $diff $tmpdir/nm.out $srcdir/$subdir/$expect" exec_output
+ catch "exec sort $srcdir/$subdir/$expect | $diff $tmpdir/nm.out -" exec_output
set exec_output [prune_warnings $exec_output]
if [string match "" $exec_output] then {
pass $test