Permalink
Browse files

Correctly return the exit code when the unwrapped unit test failed

  • Loading branch information...
Naios committed Jul 23, 2017
1 parent 6bd34c5 commit 5c208ae687e9872f4308d29654b13d119463c684
Showing with 7 additions and 4 deletions.
  1. +7 −4 tests/unit/util/unwrapped.cpp
@@ -287,9 +287,7 @@ int hpx_main(
}
}
finalize();
return report_errors();
return finalize();
}
///////////////////////////////////////////////////////////////////////////////
@@ -307,6 +305,11 @@ int main(
};
// Initialize and run HPX
return hpx::init(cmdline, argc, argv, cfg);
if (int result = init(cmdline, argc, argv, cfg))
{
return result;
}
// Report errors after HPX was finished
return report_errors();
}

0 comments on commit 5c208ae

Please sign in to comment.