From 690af21140af2be7966f67690b35a66e4f017199 Mon Sep 17 00:00:00 2001 From: Romain Goyet Date: Wed, 18 Sep 2019 17:30:08 +0200 Subject: [PATCH] [quiz] Abort on assertion failure This allows CI to handle test failures correctly --- quiz/src/assertions.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/quiz/src/assertions.cpp b/quiz/src/assertions.cpp index b439a3146..5e9b19b29 100644 --- a/quiz/src/assertions.cpp +++ b/quiz/src/assertions.cpp @@ -4,8 +4,6 @@ void quiz_assert(bool condition) { if (!condition) { - // We want to keep what the screen is displaying so we cannot abort - while (1) { - } + abort(); } }