summaryrefslogtreecommitdiff
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
commit94c43b6061ca80fa23511810b07e36aa14ea320d (patch)
tree4e9ba6dfa389e7144a82b8aecc1f8f3c7c841ce9 /ld/testsuite/ld-elfvers
parentfbfb8d3bf1b19e273eeeffb74055d84b78316839 (diff)
downloadbinutils-redhat-94c43b6061ca80fa23511810b07e36aa14ea320d.tar.gz
* 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 f163c21837..e2f658dac7 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