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.
pull/3483/head
Paul Sokolovsky 2017-12-08 19:15:45 +02:00
rodzic 55d33d5897
commit 24c641c4e3
1 zmienionych plików z 2 dodań i 3 usunięć

Wyświetl plik

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