diff options
Diffstat (limited to 'tests/scripts/targets')
-rw-r--r-- | tests/scripts/targets/INTERMEDIATE | 8 | ||||
-rw-r--r-- | tests/scripts/targets/SECONDARY | 6 |
2 files changed, 6 insertions, 8 deletions
diff --git a/tests/scripts/targets/INTERMEDIATE b/tests/scripts/targets/INTERMEDIATE index 725ab0e..4fdd7a2 100644 --- a/tests/scripts/targets/INTERMEDIATE +++ b/tests/scripts/targets/INTERMEDIATE @@ -33,9 +33,7 @@ close(MAKEFILE); # TEST #0 -&touch('foo.f'); -&touch('bar.f'); -sleep($wtime); +&utouch(-20, 'foo.f', 'bar.f'); &run_make_with_options($makefile,'foo.d',&get_logfile); $answer = "cp foo.f foo.e\ncp foo.e foo.d\nrm foo.e\n"; @@ -49,7 +47,7 @@ $answer = "$make_name: `foo.d' is up to date.\n"; # TEST #2 -sleep($wtime); +&utouch(-10, 'foo.d'); &touch('foo.f'); &run_make_with_options($makefile,'foo.d',&get_logfile); @@ -70,7 +68,7 @@ $answer = "$make_name: `foo.c' is up to date.\n"; # TEST #5 -sleep($wtime); +&utouch(-10, 'foo.c'); &touch('foo.f'); &run_make_with_options($makefile,'foo.c',&get_logfile); diff --git a/tests/scripts/targets/SECONDARY b/tests/scripts/targets/SECONDARY index 3ae34fd..5a60ed2 100644 --- a/tests/scripts/targets/SECONDARY +++ b/tests/scripts/targets/SECONDARY @@ -33,7 +33,7 @@ close(MAKEFILE); # TEST #1 -&touch('foo.f'); +&utouch(-20, 'foo.f'); &run_make_with_options($makefile,'foo.d',&get_logfile); $answer = "cp foo.f foo.e\ncp foo.e foo.d\n"; @@ -49,7 +49,7 @@ $answer = "$make_name: `foo.d' is up to date.\n"; # TEST #3 -sleep($wtime); +&utouch(-10, 'foo.d'); &touch('foo.f'); &run_make_with_options($makefile,'foo.d',&get_logfile); @@ -72,7 +72,7 @@ $answer = "$make_name: `foo.c' is up to date.\n"; # TEST #6 -sleep($wtime); +&utouch(-10, 'foo.c'); &touch('foo.f'); &run_make_with_options($makefile,'foo.c',&get_logfile); |