File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,6 +7,4 @@ USEMODULE += shell
77USEMODULE += shell_commands
88USEMODULE += ps
99
10- TEST_ON_CI_WHITELIST += all
11-
1210include $(RIOTBASE ) /Makefile.include
Original file line number Diff line number Diff line change 99import sys
1010from testrunner import run
1111
12+
1213def 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+
3034if __name__ == "__main__" :
3135 sys .exit (run (testfunc ))
You can’t perform that action at this time.
0 commit comments