diff options
Diffstat (limited to 't/lib/getopt.t')
-rwxr-xr-x | t/lib/getopt.t | 4 |
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"; |