BEGIN {
chdir 't' if -d 't';
- @INC = '../lib';
+ unshift @INC, '../lib';
}
print "1..11\n";
# Try illegal options, but avoid printing of the error message
open(STDERR, ">stderr") || die;
-unlink "stderr";
@ARGV = qw(-h help);
print "not " unless "@ARGV" eq "file";
print "ok 11\n";
+
+close STDERR;
+unlink "stderr";