HAL_SITL: added support for exit on panic()

used by autotest server
This commit is contained in:
Andrew Tridgell 2019-06-07 18:43:42 +10:00
parent 35d4555be0
commit 02403d9b93
1 changed files with 5 additions and 0 deletions

View File

@ -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(;;);
}