File: 0006-tests-Remove-bogus-test-for-unsorted-file-listing.patch

package info (click to toggle)
inetutils 2%3A2.6-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 17,312 kB
  • sloc: ansic: 125,847; sh: 12,435; yacc: 1,651; makefile: 697; perl: 72
file content (44 lines) | stat: -rw-r--r-- 1,352 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
From 44f068d40f5124dd1996fa2442c8370321d14bf5 Mon Sep 17 00:00:00 2001
From: Guillem Jover <guillem@hadrons.org>
Date: Fri, 20 Jun 2025 03:18:06 +0200
Subject: [PATCH 6/6] tests: Remove bogus test for unsorted file listing

We cannot reliably test whether the -f option works against, because
that relies on the unsorted output coming out accidentally not sorted,
and this has been the cause for several indeterministic build failures
in various hosts (such as some sparc64 or reproducible build nodes).

This could be guaranteed with something like disorderfs, but we do not
bother and simply remove the test case.

Origin: vendor, Debian
Forwarded: no
---
 tests/libls.sh | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/tests/libls.sh b/tests/libls.sh
index b1b73f85..69cff572 100755
--- a/tests/libls.sh
+++ b/tests/libls.sh
@@ -91,7 +91,6 @@ REPLY_a1=`$LS -a1 $LSDIR`
 REPLY_A1=`$LS -A1 $LSDIR`
 
 REPLY_C=`$LS -C $LSDIR`
-REPLY_Cf=`$LS -Cf $LSDIR`
 REPLY_Cr=`$LS -Cr $LSDIR`
 REPLY_Ct=`$LS -Ct $LSDIR`
 REPLY_x=`$LS -x $LSDIR`
@@ -130,9 +129,6 @@ test `echo "$diff" | $GREP -c -v '^[.]\{1,2\}$'` -eq 0 ||
     fi
   }
 
-test x"$REPLY_C" != x"$REPLY_Cf" ||
-  { errno=1; echo >&2 'Failed to disable sorting with "-f".'; }
-
 test x"$REPLY_C" != x"$REPLY_Cr" ||
   { errno=1; echo >&2 'Failed to reverse sorting with "-r".'; }
 
-- 
2.50.0