application exit error handing
This commit is contained in:
30
tests/runtime/simple/main.cpp
Normal file
30
tests/runtime/simple/main.cpp
Normal file
@@ -0,0 +1,30 @@
|
||||
#include "tests.h"
|
||||
#include <vx_print.h>
|
||||
|
||||
int main() {
|
||||
int errors = 0;
|
||||
|
||||
vx_printf("Simple Test\n");
|
||||
|
||||
errors += test_global_memory();
|
||||
|
||||
errors += test_stack_memory();
|
||||
|
||||
errors += test_shared_memory();
|
||||
|
||||
errors += test_tmc();
|
||||
|
||||
errors += test_divergence();
|
||||
|
||||
errors += test_wsapwn();
|
||||
|
||||
errors += test_spawn_tasks();
|
||||
|
||||
if (0 == errors) {
|
||||
vx_printf("Passed!\n");
|
||||
} else {
|
||||
vx_printf("Failed!\n");
|
||||
}
|
||||
|
||||
return errors;
|
||||
}
|
||||
Reference in New Issue
Block a user