summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
998925c)
Some older implementations suffer from timestamp truncation bugs, so
the assumption that touching a file sets its mtime to be greater than
or equal to previously-created files is not correct.
For these test cases, we can just append something to the files instead;
the file contents are completely irrelevant.
-dnl Copyright © 2020-2022 Nick Bowler
+dnl Copyright © 2020-2023 Nick Bowler
dnl License GPLv2+: GNU General Public License version 2 or any later version.
dnl This is free software: you are free to change and redistribute it.
dnl There is NO WARRANTY, to the extent permitted by law.
dnl License GPLv2+: GNU General Public License version 2 or any later version.
dnl This is free software: you are free to change and redistribute it.
dnl There is NO WARRANTY, to the extent permitted by law.
AT_KEYWORDS([option])dnl
# Sanity check for make implementation
AT_KEYWORDS([option])dnl
# Sanity check for make implementation
-touch test.h; touch test-h
+echo >>test.h; echo >>test-h
AT_CHECK([mtime_uptodate test-h test.h || exit 77])
AT_CHECK([mtime_uptodate test-h test.h || exit 77])
-TEST_MTIME_DELAY; touch test.h
+TEST_MTIME_DELAY; echo >>test.h
AT_CHECK([mtime_uptodate test-h test.h && exit 77], [1])
rm -f test.h
AT_CHECK([mtime_uptodate test-h test.h && exit 77], [1])
rm -f test.h
]])
AT_CHECK([gob2 test.gob])
]])
AT_CHECK([gob2 test.gob])
-touch test-c test-h test-private
+echo >>test-c; echo >>test-h; echo >>test-private
TEST_MTIME_DELAY
AT_CHECK([gob2 test.gob])
AT_CHECK([mtime_uptodate test-c test.c], [1])
AT_CHECK([mtime_uptodate test-h test.h], [1])
AT_CHECK([mtime_uptodate test-private test-private.h], [1])
TEST_MTIME_DELAY
AT_CHECK([gob2 test.gob])
AT_CHECK([mtime_uptodate test-c test.c], [1])
AT_CHECK([mtime_uptodate test-h test.h], [1])
AT_CHECK([mtime_uptodate test-private test-private.h], [1])
-touch test-c test-h test-private
+echo >>test-c; echo >>test-h; echo >>test-private
TEST_MTIME_DELAY
AT_CHECK([gob2 test.gob OPTION])
AT_CHECK([mtime_uptodate test-c test.c],
TEST_MTIME_DELAY
AT_CHECK([gob2 test.gob OPTION])
AT_CHECK([mtime_uptodate test-c test.c],
-touch test-c test-h test-private
+echo >>test-c; echo >>test-h; echo >>test-private
TEST_MTIME_DELAY
AT_CHECK([gob2 test.gob OPTION])
AT_CHECK([mtime_uptodate test-c test.c], [1])
TEST_MTIME_DELAY
AT_CHECK([gob2 test.gob OPTION])
AT_CHECK([mtime_uptodate test-c test.c], [1])
/* yonder comment */
%}
EOF
/* yonder comment */
%}
EOF
-touch test-c test-h test-private
+echo >>test-c; echo >>test-h; echo >>test-private
TEST_MTIME_DELAY
AT_CHECK([gob2 test.gob OPTION])
AT_CHECK([mtime_uptodate test-c test.c],
TEST_MTIME_DELAY
AT_CHECK([gob2 test.gob OPTION])
AT_CHECK([mtime_uptodate test-c test.c],
/* once more unto the breach */
%}
EOF
/* once more unto the breach */
%}
EOF
-touch test-c test-h test-private
+echo >>test-c; echo >>test-h; echo >>test-private
TEST_MTIME_DELAY
AT_CHECK([gob2 test.gob OPTION])
AT_CHECK([mtime_uptodate test-c test.c],
TEST_MTIME_DELAY
AT_CHECK([gob2 test.gob OPTION])
AT_CHECK([mtime_uptodate test-c test.c],