From 90498c41eac503e4a87be9881d06d0cc455d2e54 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Thu, 12 Nov 2026 14:10:12 -0600 Subject: [PATCH] Fix TEST_HOST to work around another gratuitous coreutils change. Between coreutils 9.1 and 9.7 they changed how rounding works: previously 48893/3=16297 so with -n 3 the file was split into 16297, 16297, and 16299 chunks. Now it's being split into 16298, 16298, and 16297 chunks (for presumably aesthetic reasons) and there's no way for a TEST_HOST to pass both, so make the test divide evenly to avoid rounding. --- tests/split.test | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/split.test b/tests/split.test index e0dc1eb2..010e348f 100755 --- a/tests/split.test +++ b/tests/split.test @@ -30,8 +30,8 @@ testing "reassembly" \ rm -f file whang* reassembled testing "-n" "echo ensure truncation>xab;split -n 3 input;md5sum xaa xab xac" \ - "494bb8fb423bfa1a5fd66dd0b98f866d xaa\n449acfdbc692780de30a2df05c5d32aa xab\n15ab4be57aebe9a1e445195d5094036c xac\n" \ - "$(seq 1 10000)" "" + "6411ecdcba6fcda4f635eda32f654485 xaa\n28b55b091b7f1ef9df32faa19c1f3843 xab\nc908e04ddbc845f91ee683a96206d11c xac\n" \ + "$(seq 1 10000)\n" "" rm -f x* seq 1 12345 > xab -- 2.39.5