Skip to content

Commit 16c6bb6

Browse files
committed
Updated test memavail (heap check)
1 parent f2a3cbd commit 16c6bb6

3 files changed

Lines changed: 18 additions & 4 deletions

File tree

tests/runtime/cases/memavail.bas

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
REM fixes heapsize to 4K. Needed for make this test deterministic
2+
#pragma heap_size = 4096
3+
4+
#include <alloc.bas>
5+
6+
#include "lib/tst_framework.bas"
7+
8+
INIT("Testing heap size")
9+
10+
11+
PRINT memavail(); " == "; maxavail(); " ";
12+
IF memavail() <> maxavail() THEN
13+
REPORT_FAIL
14+
ELSE
15+
REPORT_OK
16+
END IF
17+
18+
6.75 KB
Binary file not shown.

tests/runtime/memavail.bas

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)