[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] Sort find result of hardlink.sh test.
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