On 24/09/2026 22:37, Thomas Klausner wrote:
   make TESTS=tests/stat/stat-birthtime.sh SUBDIRS=. check
Fails every time.

Manual test:

# touch a || fail=1
# btime=$(stat --format %W a) || fail=1
# atime=$(stat --format %X a) || fail=1
# ctime=$(stat --format %Z a) || fail=1
# mtime=$(stat --format %Y a) || fail=1
# echo $btime $atime $ctime $mtime
1790285360 1790285360 1790285360 1790285360

(wait a bit)

# touch a || fail=1
# btime=$(stat --format %W a) || fail=1
# atime=$(stat --format %X a) || fail=1
# ctime=$(stat --format %Z a) || fail=1
# mtime=$(stat --format %Y a) || fail=1
# echo $btime $atime $ctime $mtime
1790285360 1790285451 1790285360 1790285451

So ... mtime changed and it should according to the test?

They all should change apart from btime,
and above they all did, so that would be a pass.
Since this fails every time, can you add debugging in the test itself?

Adding VERBOSE=yes to the make invocation may be a quick way to do that.

thanks,
Padraig



Reply via email to