|
| From: | Pádraig Brady |
| Subject: | Re: tests: avoid a false failure on Cygwin |
| Date: | Sat, 26 Jul 2025 11:23:18 +0100 |
| User-agent: | Mozilla Thunderbird Beta |
On 26/07/2025 08:39, Collin Funk wrote:
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.
That looks like a more general issue. Shouldn't the (exit $1) in Exit() set $? to $fail ? Perhaps remove_tmp_() is triggered too early or something? cheers, Padraig
| [Prev in Thread] | Current Thread | [Next in Thread] |