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:
parent
55d33d5897
commit
24c641c4e3
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue