Skip to content

Commit

Permalink
Use EXIT_FAILURE and EXIT_SUCCESS as exit() parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
cameel committed Dec 6, 2021
1 parent 56ef715 commit eab8b3a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/boostTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -190,10 +190,10 @@ test_suite* init_unit_test_suite(int /*argc*/, char* /*argv*/[])
{
bool shouldContinue = initializeOptions();
if (!shouldContinue)
exit(0);
exit(EXIT_SUCCESS);

if (!solidity::test::loadVMs(solidity::test::CommonOptions::get()))
exit(1);
exit(EXIT_FAILURE);

if (solidity::test::CommonOptions::get().disableSemanticTests)
cout << endl << "--- SKIPPING ALL SEMANTICS TESTS ---" << endl << endl;
Expand Down Expand Up @@ -239,12 +239,12 @@ test_suite* init_unit_test_suite(int /*argc*/, char* /*argv*/[])
catch (solidity::test::ConfigException const& exception)
{
cerr << exception.what() << endl;
exit(1);
exit(EXIT_FAILURE);
}
catch (std::runtime_error const& exception)
{
cerr << exception.what() << endl;
exit(1);
exit(EXIT_FAILURE);
}

return nullptr;
Expand Down

0 comments on commit eab8b3a

Please sign in to comment.