[quiz/runner] For device, sleep after the tests have properly finished

This commit is contained in:
Léa Saviot
2020-02-12 13:46:50 +01:00
parent 6dced2d157
commit af621838b9
2 changed files with 10 additions and 0 deletions

View File

@@ -42,6 +42,10 @@ ifeq ("$(origin V)", "command line")
endif endif
endif endif
ifeq ("$(PLATFORM)", "device")
SFLAGS += -DPLATFORM_DEVICE
endif
# Host detection # Host detection
ifeq ($(OS),Windows_NT) ifeq ($(OS),Windows_NT)
HOST = windows HOST = windows

View File

@@ -24,8 +24,14 @@ static inline void ion_main_inner() {
i++; i++;
} }
quiz_print("ALL TESTS FINISHED"); quiz_print("ALL TESTS FINISHED");
#ifdef PLATFORM_DEVICE
while (1) {
Ion::Timing::msleep(100000);
}
#endif
} }
void ion_main(int argc, const char * const argv[]) { void ion_main(int argc, const char * const argv[]) {
// Initialize the backlight // Initialize the backlight
Ion::Backlight::init(); Ion::Backlight::init();