summaryrefslogtreecommitdiff
path: root/tests/scripts/options
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2005-06-27 22:18:47 +0000
committerPaul Smith <psmith@gnu.org>2005-06-27 22:18:47 +0000
commit7dfa2461c32020f56a55239830b280752b1748a1 (patch)
tree15abda6fa7a30ed08e2ad2883b2f194e88e14a23 /tests/scripts/options
parent261d7b44fa0d5e2b318c0544f9cc1f1d8e4ac69c (diff)
downloadgunmake-7dfa2461c32020f56a55239830b280752b1748a1.tar.gz
Cleaned up some problems found with the tests running on a powerful
Solaris system with an EMC NFS storage solution. Still get some odd errors here unfortunately related to sub-second timestamps that I just can't figure out. It all works if we run the tests in /tmp instead though :-/.
Diffstat (limited to 'tests/scripts/options')
-rw-r--r--tests/scripts/options/dash-W14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/scripts/options/dash-W b/tests/scripts/options/dash-W
index 2864711..baa04a5 100644
--- a/tests/scripts/options/dash-W
+++ b/tests/scripts/options/dash-W
@@ -6,9 +6,9 @@ $description = "Test make -W (what if) option.\n";
run_make_test('
a.x: b.x
-a.x b.x: ; touch $@
+a.x b.x: ; echo >> $@
',
- '', "touch b.x\ntouch a.x");
+ '', "echo >> b.x\necho >> a.x");
# Run it again: nothing should happen
@@ -16,13 +16,13 @@ run_make_test(undef, '', "#MAKE#: `a.x' is up to date.");
# Now run it with -W b.x: should rebuild a.x
-run_make_test(undef, '-W b.x', 'touch a.x');
+run_make_test(undef, '-W b.x', 'echo >> a.x');
# Put the timestamp for a.x into the future; it should still be remade.
utouch(1000, 'a.x');
run_make_test(undef, '', "#MAKE#: `a.x' is up to date.");
-run_make_test(undef, '-W b.x', 'touch a.x');
+run_make_test(undef, '-W b.x', 'echo >> a.x');
# Clean up
@@ -39,11 +39,11 @@ include foo.x
foo.x: bar.x
@echo "\$$(info restarts=\$$(MAKE_RESTARTS))" > $@
@echo "touch $@"
-bar.x: ; touch $@
+bar.x: ; echo >> $@
baz.x: bar.x ; @echo "touch $@"
',
'', '#MAKEFILE#:3: foo.x: No such file or directory
-touch bar.x
+echo >> bar.x
touch foo.x
restarts=1
touch baz.x');
@@ -51,7 +51,7 @@ touch baz.x');
# Now run with -W bar.x
# Tweak foo.x's timestamp so the update will change it.
-utouch(1000, 'foo.x');
+&utouch(1000, 'foo.x');
run_make_test(undef, '-W bar.x', "restarts=\ntouch foo.x\nrestarts=1\ntouch baz.x");