]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: avoid a false failure on Cygwin
authorCollin Funk <collin.funk1@gmail.com>
Sat, 26 Jul 2025 18:29:02 +0000 (11:29 -0700)
committerCollin Funk <collin.funk1@gmail.com>
Sat, 26 Jul 2025 18:29:02 +0000 (11:29 -0700)
* tests/cksum/md5sum-bsd.sh: Use 'echo' instead of ':' to redirect to
the file. Otherwise 'Exit $fail' is not called on Cygwin.

tests/cksum/md5sum-bsd.sh

index aa2d24d89ae19143b691d7a1e8f601a5a36074ac..1f80ccbe1c6b74c2dc9f2e8a81efce510b0ab780 100755 (executable)
@@ -70,7 +70,7 @@ for i in 'a' ' b' '*c' 'dd' ' '; do
 done
 md5sum --strict -c check.md5 || fail=1
 
-if : > 'backslash\is\not\dir\sep'; then
+if echo '' > 'backslash\is\not\dir\sep'; then
   # Ensure we can --check BSD traditional format we produce
   # with the GNU extension of escaped newlines
   nl='