aboutsummaryrefslogtreecommitdiffstats
path: root/test/rt/testbuild/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/rt/testbuild/main.c')
-rw-r--r--test/rt/testbuild/main.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/rt/testbuild/main.c b/test/rt/testbuild/main.c
index 540a8a7d0..5eccafa5a 100644
--- a/test/rt/testbuild/main.c
+++ b/test/rt/testbuild/main.c
@@ -26,7 +26,6 @@
* Simulator main.
*/
int main(int argc, char *argv[]) {
- msg_t result;
(void)argc;
(void)argv;
@@ -42,8 +41,8 @@ int main(int argc, char *argv[]) {
conInit();
chSysInit();
- result = TestThread(&CD1);
- if (result)
+ TestThread(&CD1);
+ if (test_global_fail)
exit(1);
else
exit(0);