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.
This commit is contained in:
Paul Sokolovsky 2017-12-08 19:15:45 +02:00
parent 55d33d5897
commit 24c641c4e3
1 changed files with 2 additions and 3 deletions

View File

@ -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;
}