Skip to content

Commit

Permalink
Merge pull request #194 from MikeMirzayanov/issue-170-ejudge-register…
Browse files Browse the repository at this point in the history
…TestlibCmd-support

In case of EJUDGE ignore argc == 5/6 cases in registerTestlibCmd
  • Loading branch information
MikeMirzayanov authored Sep 30, 2023
2 parents bca6f50 + b940a91 commit 0ca6179
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions testlib.h
Original file line number Diff line number Diff line change
Expand Up @@ -4674,6 +4674,7 @@ void registerTestlibCmd(int argc, char *argv[]) {
appesMode = false;
}

#ifndef EJUDGE
if (argc == 5) {
resultName = args[4];
appesMode = false;
Expand All @@ -4688,6 +4689,7 @@ void registerTestlibCmd(int argc, char *argv[]) {
appesMode = true;
}
}
#endif

inf.init(args[1], _input);
ouf.init(args[2], _output);
Expand Down

0 comments on commit 0ca6179

Please sign in to comment.