mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-30 02:31:44 +00:00
Make HAL_Initialize timeout configurable, makes result a bool, and makes Java an exception rather than assert. (#557)
This commit is contained in:
committed by
Peter Johnson
parent
d34c844900
commit
2da26c0579
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user