* tests/scripts/features/reinvoke: Warn about closing STDIN.

* tests/scripts/features/temp_stdin: Ditto.
* tests/scripts/options/dash-f: Ditto.
This commit is contained in:
Paul Smith
2023-01-11 19:17:07 -05:00
parent f51fc130cc
commit 8a0d7fd4ef
3 changed files with 6 additions and 1 deletions

View File

@@ -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');

View File

@@ -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');

View File

@@ -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);