coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

tests: avoid a false failure on Cygwin


From: Collin Funk
Subject: tests: avoid a false failure on Cygwin
Date: Sat, 26 Jul 2025 00:39:24 -0700
User-agent: Gnus/5.13 (Gnus v5.13)

On Cygwin tests/cksum/md5sum-bsd.sh fails with the following logged:

    + :
    ./tests/cksum/md5sum-bsd.sh: line 73: backslash\is\not\dir\sep: No such 
file or directory
    + remove_tmp_
    + __st=1
    + cleanup_
    [...]
    exit 0

After checking if backslash is a directory seperator, $? is set to 1 on
Cygwin. Since we don't have anything after this 'Exit' is called and
__st is set to $? which is 1. This value of __st is what init.sh
actually calls 'exit' with.

The fix is to reset $? with ':'. Will push in a bit.

Collin

Attachment: 0001-tests-avoid-a-false-failure-on-Cygwin.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]