mirror of
https://github.com/google/googletest.git
synced 2026-04-30 19:09:20 +08:00
graceful exit main on zephyr
This commit is contained in:
parent
fcdc66adcb
commit
55da83185f
@ -58,7 +58,12 @@ void loop() { RUN_ALL_TESTS(); }
|
||||
GTEST_API_ int main() {
|
||||
printf("Running main() from %s\n", __FILE__);
|
||||
testing::InitGoogleTest();
|
||||
return RUN_ALL_TESTS();
|
||||
|
||||
int ret = RUN_ALL_TESTS();
|
||||
#if defined(GTEST_OS_ZEPHYR)
|
||||
_exit( ret );
|
||||
#endif
|
||||
return ret;
|
||||
}
|
||||
#else
|
||||
// Normal platforms: program entry point is main, argc/argv are initialized.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user