* ld-elfvers/vers.exp (test_ar): Sort the expected output so that
authorNick Clifton <nickc@redhat.com>
Mon, 28 Jan 2008 16:41:05 +0000 (16:41 +0000)
committerNick Clifton <nickc@redhat.com>
Mon, 28 Jan 2008 16:41:05 +0000 (16:41 +0000)
  it has matches the ordering of the obtained output.

ld/testsuite/ChangeLog
ld/testsuite/ld-elfvers/vers.exp

index 20347950fcaaacbc41d59d14379a3cd86493547f..8879a4aa27eb90d8100a6e447b8e834e5018e9eb 100644 (file)
@@ -1,3 +1,8 @@
+2008-01-28  Petr Muller  <pmuller@redhat.com>
+
+       * ld-elfvers/vers.exp (test_ar): Sort the expected output so that
+       it has matches the ordering of the obtained output.
+
 2008-01-28  H.J. Lu  <hongjiu.lu@intel.com>
 
        * ld-elf/eh1.d: Replace DW_CFA_def_cfa_reg with
index f163c2183707fae5270f624fb0df4395c90ab360..e2f658dac75c5b00a5b9815f47bc94d9a3f66e90 100644 (file)
@@ -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