summaryrefslogtreecommitdiff
path: root/t/lib/getopt.t
diff options
context:
space:
mode:
Diffstat (limited to 't/lib/getopt.t')
-rwxr-xr-xt/lib/getopt.t4
1 files changed, 3 insertions, 1 deletions
diff --git a/t/lib/getopt.t b/t/lib/getopt.t
index ec2ea49059..fb70f10aae 100755
--- a/t/lib/getopt.t
+++ b/t/lib/getopt.t
@@ -41,7 +41,6 @@ print "ok 7\n";
# Try illegal options, but avoid printing of the error message
open(STDERR, ">stderr") || die;
-unlink "stderr";
@ARGV = qw(-h help);
@@ -69,3 +68,6 @@ print "ok 10\n";
print "not " unless "@ARGV" eq "file";
print "ok 11\n";
+
+close STDERR;
+unlink "stderr";