public inbox for dwz@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] Sort find result of hardlink.sh test.
@ 2019-01-01  0:00 Mark Wielaard
  2019-01-01  0:00 ` Jakub Jelinek
  0 siblings, 1 reply; 4+ messages in thread
From: Mark Wielaard @ 2019-01-01  0:00 UTC (permalink / raw)
  To: dwz; +Cc: Mark Wielaard

Find can return results in arbitrary order. Sort the output of find
to make sure the test doesn't spuriously fails. The same isn't necessary
for ls, which sorts the file list by default.

2019-03-03  Mark Wielaard  <mark@klomp.org>

	* testsuite/dwz.tests/hardlink.sh: Sort find output.
---
 testsuite/dwz.tests/hardlink.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/testsuite/dwz.tests/hardlink.sh b/testsuite/dwz.tests/hardlink.sh
index de339b9..e3213a3 100755
--- a/testsuite/dwz.tests/hardlink.sh
+++ b/testsuite/dwz.tests/hardlink.sh
@@ -10,7 +10,7 @@ dwz -h 1 2
 smaller-than.sh 1 ../hello
 smaller-than.sh 2 ../hello
 
-hl="$(find -samefile 1)"
+hl="$(find -samefile 1 | sort)"
 hl="$(echo $hl)"
 [ "$hl" = "./1 ./2" ]
 
-- 
2.20.1

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-03-03 22:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-01  0:00 [PATCH] Sort find result of hardlink.sh test Mark Wielaard
2019-01-01  0:00 ` Jakub Jelinek
2019-01-01  0:00   ` Mark Wielaard
2019-01-01  0:00     ` Jakub Jelinek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).