From 08706e771e8759b6c27e28cc819c9ccff1feec0d Mon Sep 17 00:00:00 2001 From: Gunar Schorcht Date: Tue, 25 Feb 2020 09:28:58 +0100 Subject: [PATCH] tests/cpp11_condition_variable: fix NDEBUG compile problem --- tests/cpp11_condition_variable/main.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/cpp11_condition_variable/main.cpp b/tests/cpp11_condition_variable/main.cpp index 035190ed1d..5276e5c9f7 100644 --- a/tests/cpp11_condition_variable/main.cpp +++ b/tests/cpp11_condition_variable/main.cpp @@ -20,7 +20,6 @@ #include #include -#include #include #include "riot/mutex.hpp" @@ -28,6 +27,8 @@ #include "riot/thread.hpp" #include "riot/condition_variable.hpp" +#include "test_utils/expect.h" + using namespace std; using namespace riot; @@ -62,7 +63,7 @@ int main() { cv.wait(lk, [&processed] { return processed; }); } string expected = "Example data after processing"; - assert(data == expected); + expect(data == expected); worker.join(); } puts("Done\n"); @@ -102,7 +103,7 @@ int main() { cv.wait_for(lk, chrono::seconds(timeout)); xtimer_now_timex(&after); auto diff = timex_sub(after, before); - assert(diff.seconds >= timeout); + expect(diff.seconds >= timeout); } puts("Done\n"); @@ -119,7 +120,7 @@ int main() { cv.wait_until(lk, time); xtimer_now_timex(&after); auto diff = timex_sub(after, before); - assert(diff.seconds >= timeout); + expect(diff.seconds >= timeout); } puts("Done\n");