From 5c9e8c77bc7619d747f88679411e1538f5053e13 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Tue, 6 Sep 2022 17:07:47 -0700 Subject: [PATCH] Minimal fix for the macOS tar.test breakage. The "666" seems appropriate for such a contorted control structure, and genuinely feels _less_ error-prone than putting the correct numbers would be! --- tests/tar.test | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/tar.test b/tests/tar.test index 75ee4e37..9facfe4d 100755 --- a/tests/tar.test +++ b/tests/tar.test @@ -109,7 +109,7 @@ testing "create long fname" "$TAR dir/${LONG:1:97} dir/${LONG:1:96} | SUM 3" \ "d70018505fa5df19ae73498cfc74d0281601e42e\n" "" "" # MacOS X has different symlink permissions, skip these tests there -[ "$(uname)" == Darwin ] || SKIP=1 +[ "$(uname)" == Darwin ] && SKIP=666 # / and .. only stripped from name, not symlink target. ln -s ../name.././.. dir/link @@ -234,7 +234,7 @@ testing "autodetect falls back to gzip -d when no zcat" \ rm -rf path # Tests that don't produce the same results on MacOS X as Linux -[ "$(uname)" == Darwin ] || SKIP=1 +[ "$(uname)" == Darwin ] && SKIP=666 yes | head -n $((1<<18)) > bang { dd bs=$((1<<16)) count=1 status=none; dd bs=8192 seek=14 count=1 status=none; dd bs=4096 seek=64 count=5 status=none; } < bang > fweep -- 2.39.2