Skip to content

Commit 24c641c

Browse files
committed
qemu-arm/test_main: Clean up invocation of tinytest_main().
Command-line argc and argv should be passed, and as we don't have them, placeholders were passed, but incorrectly. As we don't have them, just pass 0/NULL. Looking at the source, this migh lead to problems under Windows, but this test doesn't run under Windows. Also, use "%d" printf format consistently with the rest of the codebase.
1 parent 55d33d5 commit 24c641c

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

ports/qemu-arm/test_main.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,11 @@ inline void do_str(const char *src) {
4949
#include "genhdr/tests.h"
5050

5151
int main() {
52-
const char a[] = {"sim"};
5352
mp_stack_ctrl_init();
5453
mp_stack_set_limit(10240);
5554
heap = malloc(HEAP_SIZE);
56-
int r = tinytest_main(1, (const char **) a, groups);
57-
printf( "status: %i\n", r);
55+
int r = tinytest_main(0, NULL, groups);
56+
printf("status: %d\n", r);
5857
return r;
5958
}
6059

0 commit comments

Comments
 (0)