Skip to content

Commit d5f4fc8

Browse files
committed
add guard for test case size
1 parent 8167b4d commit d5f4fc8

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

test/bench_lpn.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ int main(int argc, char** argv) {
1515
k = 11;
1616
n = 20;
1717
}
18+
if(n > 30 or k > 30) {
19+
cout <<"Large test size! comment me if you want to run this size\n";
20+
exit(1);
21+
}
22+
1823
block seed;
1924
block * kk = new block[1<<k];
2025
block * nn = new block[1<<n];

test/ferret.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ int main(int argc, char** argv) {
3333
int64_t length = 24;
3434
if (argc > 3)
3535
length = atoi(argv[3]);
36+
if(length > 30) {
37+
cout <<"Large test size! comment me if you want to run this size\n";
38+
exit(1);
39+
}
40+
3641
test_ferret(party, ios, length);
3742

3843
for(int i = 0; i < threads; ++i)

0 commit comments

Comments
 (0)