summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2023-01-11 19:17:07 -0500
committerPaul Smith <psmith@gnu.org>2023-01-11 20:35:11 -0500
commit8a0d7fd4efec5147559a9c086289fb5b30956f6c (patch)
tree9de15fb58030509eee080f078da517c9195ff982
parentf51fc130cc8fe687cef68e5192e71c6a269c92a0 (diff)
downloadmake-git-8a0d7fd4efec5147559a9c086289fb5b30956f6c.tar.gz
* tests/scripts/features/reinvoke: Warn about closing STDIN.
* tests/scripts/features/temp_stdin: Ditto. * tests/scripts/options/dash-f: Ditto.
-rw-r--r--tests/scripts/features/reinvoke4
-rw-r--r--tests/scripts/features/temp_stdin1
-rw-r--r--tests/scripts/options/dash-f2
3 files changed, 6 insertions, 1 deletions
diff --git a/tests/scripts/features/reinvoke b/tests/scripts/features/reinvoke
index 14e6b479..e6baedc9 100644
--- a/tests/scripts/features/reinvoke
+++ b/tests/scripts/features/reinvoke
@@ -163,7 +163,7 @@ include hello.d
unlink('hello.td');
-# Test DV 62088 : make sure we don't re-invoke for stdin makefiles.
+# Test SV 62088 : make sure we don't re-invoke for stdin makefiles.
# The test framework doesn't seem to have a good way to do this.
create_file('input.mk', "all:;\$(info all)\n");
@@ -173,6 +173,8 @@ open(STDIN, "<", 'input.mk') || die "input.mk: $!\n";
run_make_test('', '-sf -', "all\n");
+
+# This close MUST come at the end of the test!!
close(STDIN);
unlink('input.mk');
diff --git a/tests/scripts/features/temp_stdin b/tests/scripts/features/temp_stdin
index 5230f367..d7dde709 100644
--- a/tests/scripts/features/temp_stdin
+++ b/tests/scripts/features/temp_stdin
@@ -128,6 +128,7 @@ all:; $(info hello, world)
rmdir($tdir);
}
+# This close MUST come at the end of the test!!
close(STDIN);
unlink('input.mk', 'bye.mk');
diff --git a/tests/scripts/options/dash-f b/tests/scripts/options/dash-f
index ab225cef..b2416064 100644
--- a/tests/scripts/options/dash-f
+++ b/tests/scripts/options/dash-f
@@ -155,6 +155,8 @@ for my $opt (@opts) {
run_make_test('', "-f$bye $opt", $answer);
}
+
+# This close MUST come at the end of the test!!
close(STDIN);
unlink($hello, $bye, $byesrc);