Skip to content

Commit 5a4038a

Browse files
committed
fixup! tests/heap_cmd: shell-based heap function test app
1 parent 6d8fb4c commit 5a4038a

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

tests/heap_cmd/Makefile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,4 @@ USEMODULE += shell
77
USEMODULE += shell_commands
88
USEMODULE += ps
99

10-
TEST_ON_CI_WHITELIST += all
11-
1210
include $(RIOTBASE)/Makefile.include

tests/heap_cmd/tests/01-run.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,14 @@
99
import sys
1010
from testrunner import run
1111

12+
1213
def testfunc(child):
1314
# check startup message
1415
child.expect('Shell-based test application for heap functions.')
1516
child.sendline('heap')
16-
child.expect('heap: \d+ \(used \d+, free \d+\) \[bytes\]')
17+
ret = child.expect(['heap: \d+ \(used \d+, free \d+\) \[bytes\]', 'heap statistics are not supported'])
18+
if ret == 1:
19+
return
1720
child.sendline('malloc 100')
1821
child.expect('allocated 0x')
1922
addr = child.readline()
@@ -27,5 +30,6 @@ def testfunc(child):
2730
child.sendline('heap')
2831
child.expect('heap: \d+ \(used \d+, free \d+\) \[bytes\]')
2932

33+
3034
if __name__ == "__main__":
3135
sys.exit(run(testfunc))

0 commit comments

Comments
 (0)