testing: Do not ignore the return value of RUN_ALL_TESTS

Instead of ignoring the return value of RUN_ALL_TESTS, exit with the same status
code. This will make failing tests actually fail the build, instead of logging
the error, and then exiting successfully.

Signed-off-by: Gergely Nagy <algernon@keyboard.io>
pull/953/head
Gergely Nagy 4 years ago
parent 518989ba57
commit 835c332303
No known key found for this signature in database
GPG Key ID: AC1E90BAC433F68F

@ -36,7 +36,6 @@
/* Turn off virtual_io's input. */ \ /* Turn off virtual_io's input. */ \
Kaleidoscope.device().keyScanner().setEnableReadMatrix(false); \ Kaleidoscope.device().keyScanner().setEnableReadMatrix(false); \
testing::InitGoogleTest(); \ testing::InitGoogleTest(); \
/* We assign the return value of RUN_ALL_TESTS, to */ \ int result = RUN_ALL_TESTS(); \
/* silence a compiler warning. */ \ exit(result); \
int __ignore__ = RUN_ALL_TESTS(); \
} }

Loading…
Cancel
Save