]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: fold: consolidate all fold tests in tests/fold
authorPádraig Brady <P@draigBrady.com>
Mon, 25 Aug 2025 10:39:56 +0000 (11:39 +0100)
committerPádraig Brady <P@draigBrady.com>
Tue, 26 Aug 2025 15:49:56 +0000 (16:49 +0100)
* tests/misc/fold.pl: Move from here to ...
* tests/fold/fold.pl: ... here.
* tests/local.mk: Adjust accordingly.

tests/fold/fold-characters.sh
tests/fold/fold.pl [moved from tests/misc/fold.pl with 100% similarity]
tests/local.mk

index a6cc39b73ce6e3a49ee0361f45f10a92e172ef4e..159f6ddac83403e252002bf51e7cd93e6e6df60c 100755 (executable)
@@ -60,7 +60,7 @@ compare character-exp2 character-out2 || fail=1
 
 # Ensure bounded memory operation
 vm=$(get_min_ulimit_v_ fold /dev/null) && {
-  yes | tr -d '\n' | (ulimit -v $(($vm+8000)) && fold 2>err) | head -n10 || fail=1
+  yes | tr -d '\n' | (ulimit -v $(($vm+8000)) && fold 2>err) | head || fail=1
   compare /dev/null err || fail=1
 }
 
similarity index 100%
rename from tests/misc/fold.pl
rename to tests/fold/fold.pl
index d883c00ba0cdd61059795daa424db0a8e2a032df..bcb01dd8eda95643d3486da6845dcc69f9dd9276 100644 (file)
@@ -329,7 +329,7 @@ all_tests =                                 \
   tests/fold/fold-characters.sh                        \
   tests/fold/fold-nbsp.sh                      \
   tests/fold/fold-spaces.sh                    \
-  tests/misc/fold.pl                           \
+  tests/fold/fold.pl                           \
   tests/groups/groups-dash.sh                  \
   tests/groups/groups-process-all.sh           \
   tests/groups/groups-version.sh               \