summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2017-12-08 19:15:45 +0200
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2017-12-08 19:15:45 +0200
commit24c641c4e3637a8c73b7546c5500a49f7dd94b2a (patch)
treef99714cf7e634aa1eb4b59d409808571682b96ee
parent55d33d5897b27dd4b70041a38674ff1bd55709a4 (diff)
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.
-rw-r--r--ports/qemu-arm/test_main.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/ports/qemu-arm/test_main.c b/ports/qemu-arm/test_main.c
index c018ae428..acac66e6a 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;
}