Browse Source

HAL_SITL: added support for exit on panic()

used by autotest server
mission-4.1.18
Andrew Tridgell 6 years ago
parent
commit
02403d9b93
  1. 5
      libraries/AP_HAL_SITL/system.cpp

5
libraries/AP_HAL_SITL/system.cpp

@ -31,6 +31,11 @@ void panic(const char *errormsg, ...) @@ -31,6 +31,11 @@ void panic(const char *errormsg, ...)
va_end(ap);
printf("\n");
if (getenv("SITL_PANIC_EXIT")) {
// this is used on the autotest server to prevent us waiting
// 10 hours for a timeout
exit(1);
}
for(;;);
}

Loading…
Cancel
Save