Skip to content

Commit

Permalink
Corrected unit tests error handling.
Browse files Browse the repository at this point in the history
  • Loading branch information
dimi309 committed Oct 10, 2023
1 parent 7d4060d commit a2a67d7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/UnitTests/unit_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -151,13 +151,15 @@ int main(int argc, char** argv) {
RETURN1
}
LOGINFO("ModelsTimeToLoad OK");


LOGINFO("All tests have executed successfully.\n\r");
}
catch (std::exception& e) {
// Also use printf in case the logger has not been initialised properly
printf("*** Exception thrown during unit tests: %s\n\r", e.what());
LOGERROR("*** Exception thrown during unit tests: " + std::string(e.what()));
RETURN1
}
LOGINFO("All tests have executed successfully.\n\r");

#ifdef __ANDROID__
while(appActive) {
Expand Down

0 comments on commit a2a67d7

Please sign in to comment.