]> git.draconx.ca Git - gob-dx.git/blobdiff - tests/options.at
Avoid "touch" in the testsuite.
[gob-dx.git] / tests / options.at
index 089a87e55175fe082fbca9a80035f8be42a68e57..820416a438e7353100c47fe74173685796950afd 100644 (file)
@@ -1,4 +1,4 @@
-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.
@@ -286,9 +286,9 @@ m4_foreach([OPTION], [[[--no-touch]], [[--no-touch-headers]]],
 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])
-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
 
@@ -299,14 +299,14 @@ AT_DATA([test.gob], [[class :Test from G:Object
 ]])
 
 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])
 
-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],
@@ -319,7 +319,7 @@ cat >>test.gob <<'EOF'
 /* some code */
 %}
 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], [1])
@@ -331,7 +331,7 @@ cat >>test.gob <<'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],
@@ -344,7 +344,7 @@ cat >>test.gob <<'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],