Make HAL_Initialize timeout configurable, makes result a bool, and makes Java an exception rather than assert. (#557)

This commit is contained in:
Thad House
2017-07-01 00:43:06 -07:00
committed by Peter Johnson
parent d34c844900
commit 2da26c0579
7 changed files with 66 additions and 50 deletions

View File

@@ -26,7 +26,7 @@ class TestEnvironment : public testing::Environment {
if (m_alreadySetUp) return;
m_alreadySetUp = true;
if (!HAL_Initialize(0)) {
if (!HAL_Initialize(500, 0)) {
llvm::errs() << "FATAL ERROR: HAL could not be initialized\n";
std::exit(-1);
}