From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 87544 invoked by alias); 3 Mar 2019 20:52:49 -0000 Mailing-List: contact dwz-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Post: List-Help: List-Subscribe: Sender: dwz-owner@sourceware.org Received: (qmail 87529 invoked by uid 89); 3 Mar 2019 20:52:49 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Checked: by ClamAV 0.100.2 on sourceware.org X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,SPF_PASS autolearn=ham version=3.3.2 spammy=Wielaard, wielaard, HContent-Transfer-Encoding:8bit X-Spam-Status: No, score=-26.9 required=5.0 tests=BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,SPF_PASS autolearn=ham version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on sourceware.org X-Spam-Level: X-HELO: gnu.wildebeest.org From: Mark Wielaard To: dwz@sourceware.org Cc: Mark Wielaard Subject: [PATCH] Sort find result of hardlink.sh test. Date: Tue, 01 Jan 2019 00:00:00 -0000 Message-Id: <20190303205221.24496-1-mark@klomp.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Flag: NO X-SW-Source: 2019-q1/txt/msg00061.txt.bz2 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 * 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