]> git.ipfire.org Git - thirdparty/make.git/commitdiff
* tests/scripts/features/reinvoke: [SV 62088] Close STDIN
authorPaul Smith <psmith@gnu.org>
Sun, 24 Apr 2022 14:38:12 +0000 (10:38 -0400)
committerPaul Smith <psmith@gnu.org>
Sun, 24 Apr 2022 17:48:03 +0000 (13:48 -0400)
On Windows we can't delete open files, so close STDIN before
removing the temporary input file.

tests/scripts/features/reinvoke

index 5bcc40b47e4cc2866a659a2a4eee394dbbce5d71..07cbbfbe9108d1568269729205cf640aa6e0b1ef 100644 (file)
@@ -173,6 +173,7 @@ open(STDIN, "<", 'input.mk') || die "input.mk: $!\n";
 
 run_make_test('', '-sf -', "all\n");
 
+close(STDIN);
 unlink('input.mk');
 
 # This tells the test driver that the perl test script executed properly.