diff --git a/headless/Headless.cpp b/headless/Headless.cpp index 36949853df..c825fc55c1 100644 --- a/headless/Headless.cpp +++ b/headless/Headless.cpp @@ -143,7 +143,9 @@ bool RunAutoTest(HeadlessHost *headlessHost, CoreParameter &coreParameter, bool time_update(); bool passed = true; - double deadline = time_now() + timeout; + // TODO: We must have some kind of stack overflow or we're not following the ABI right. + // This gets trashed if it's not static. + static double deadline = time_now() + timeout; coreState = CORE_RUNNING; while (coreState == CORE_RUNNING)