From 24c641c4e3637a8c73b7546c5500a49f7dd94b2a Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Fri, 8 Dec 2017 19:15:45 +0200 Subject: [PATCH] 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. --- ports/qemu-arm/test_main.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ports/qemu-arm/test_main.c b/ports/qemu-arm/test_main.c index c018ae4285..acac66e6aa 100644 --- a/ports/qemu-arm/test_main.c +++ b/ports/qemu-arm/test_main.c @@ -49,12 +49,11 @@ end: #include "genhdr/tests.h" int main() { - const char a[] = {"sim"}; mp_stack_ctrl_init(); mp_stack_set_limit(10240); heap = malloc(HEAP_SIZE); - int r = tinytest_main(1, (const char **) a, groups); - printf( "status: %i\n", r); + int r = tinytest_main(0, NULL, groups); + printf("status: %d\n", r); return r; }