Skip to content

Commit

Permalink
tests: refactored to allow for no options
Browse files Browse the repository at this point in the history
  • Loading branch information
luxagen committed May 9, 2023
1 parent f9b4160 commit 310a048
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,12 @@ sub file_mtime {

sub invoke {
my ($result, $mode, @files) = (@_);
die unless run3 [ $testee, "-$mode", @files ], undef, \my $out, undef;

my @args = ($testee, "-$mode", @files);

splice(@args, 1, 1) if $args[1] eq '-';

die unless run3 \@args, undef, \my $out, undef;
die unless $? == $result<<8;
return $out;
}
Expand Down

0 comments on commit 310a048

Please sign in to comment.