Skip to content

Commit

Permalink
add guard for test case size
Browse files Browse the repository at this point in the history
  • Loading branch information
wangxiao1254 committed Feb 24, 2023
1 parent 8167b4d commit d5f4fc8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/bench_lpn.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ int main(int argc, char** argv) {
k = 11;
n = 20;
}
if(n > 30 or k > 30) {
cout <<"Large test size! comment me if you want to run this size\n";
exit(1);
}

block seed;
block * kk = new block[1<<k];
block * nn = new block[1<<n];
Expand Down
5 changes: 5 additions & 0 deletions test/ferret.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ int main(int argc, char** argv) {
int64_t length = 24;
if (argc > 3)
length = atoi(argv[3]);
if(length > 30) {
cout <<"Large test size! comment me if you want to run this size\n";
exit(1);
}

test_ferret(party, ios, length);

for(int i = 0; i < threads; ++i)
Expand Down

0 comments on commit d5f4fc8

Please sign in to comment.