From 2da3bb46f28b686da447a3c2cff728a0f21edaf6 Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Sun, 24 Apr 2022 10:40:10 -0400 Subject: [PATCH] * tests/scripts/options/dash-f: [SV 62118] Close STDIN On Windows we can't delete open files, so close STDIN before removing the temporary input file. --- tests/scripts/options/dash-f | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/scripts/options/dash-f b/tests/scripts/options/dash-f index b3c78ad6..ab225cef 100644 --- a/tests/scripts/options/dash-f +++ b/tests/scripts/options/dash-f @@ -83,8 +83,6 @@ my $hello = 'hello.mk'; my $bye = 'bye.mk'; my $byesrc = 'bye.mk.src'; -unlink($hello, $bye, $byesrc); - create_file($hello, 'all:; $(info hello, world) '); @@ -157,6 +155,7 @@ for my $opt (@opts) { run_make_test('', "-f$bye $opt", $answer); } +close(STDIN); unlink($hello, $bye, $byesrc); # This tells the test driver that the perl test script executed properly. -- 2.47.3