Skip to content

Commit

Permalink
testsuite/check_memory_limit: increase memory usage
Browse files Browse the repository at this point in the history
FreeBSD memory accounting is not very accurate - increasing the memory
usage should make this test more robust.
  • Loading branch information
Riolku committed Jun 2, 2024
1 parent 95a432b commit 15075eb
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion testsuite/check_memory_limit/checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@


def check(process_output: bytes, judge_output: bytes, *, result: Result, **kwargs) -> bool:
if result.max_memory > 16384:
if result.max_memory > 65536:
return False

return standard.check(process_output, judge_output, result=result, **kwargs)
2 changes: 1 addition & 1 deletion testsuite/check_memory_limit/tests/c_blank/test.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
language: C
time: 2
memory: 65536
memory: 262144
source: empty.c
expect: AC
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma GCC optimize "O0"

const int MN = 25 * 1024 * 1024;
const int MN = 100 * 1024 * 1024;
char arr[MN];

int main() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
language: CPP11
time: 2
memory: 65536
memory: 262144
source: bloat.cpp
expect: WA

0 comments on commit 15075eb

Please sign in to comment.