* tests/scripts/features/reinvoke: [SV 62088] Close STDIN

On Windows we can't delete open files, so close STDIN before
removing the temporary input file.
This commit is contained in:
Paul Smith 2022-04-24 10:38:12 -04:00
parent 51c1c07e7a
commit b264d3d4f8

View 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.