We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 614e33f commit 3c83717Copy full SHA for 3c83717
UnixBench/Run
@@ -906,6 +906,7 @@ sub parseArgs {
906
# Generate the requested list of bench programs.
907
my $opt;
908
my $word;
909
+ my $copies;
910
while ($word = shift(@words)) {
911
if ($word !~ m/^-/) { # A test name.
912
if ($word eq "all") {
@@ -928,7 +929,9 @@ sub parseArgs {
928
929
if (!defined($params->{'copies'})) {
930
$params->{'copies'} = [ ];
931
}
- push(@{$params->{'copies'}}, shift(@words));
932
+ $copies = shift(@words);
933
+ abortRun("-c copies should be positive integer") if ($copies !~ m/^\d+$/ || $copies <= 0);
934
+ push(@{$params->{'copies'}}, );
935
} else {
936
die("Run: unknown option $word\n");
937
0 commit comments