From d785c01b97ef22668e491df7e2bbde29f889e128 Mon Sep 17 00:00:00 2001 From: Henrik Brix Andersen Date: Tue, 6 Sep 2022 13:24:24 +0200 Subject: [PATCH] tests: shell: add missing assert Add missing assert after polling for the dummy shell backend to be ready. Fixes: 491f4dd701b043639b2ab680353249c8e151d2ca Signed-off-by: Henrik Brix Andersen --- tests/subsys/shell/shell/src/main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/subsys/shell/shell/src/main.c b/tests/subsys/shell/shell/src/main.c index 149cb065e4..335b4bf281 100644 --- a/tests/subsys/shell/shell/src/main.c +++ b/tests/subsys/shell/shell/src/main.c @@ -495,6 +495,7 @@ static void *shell_setup(void) /* Wait for the initialization of the shell dummy backend. */ WAIT_FOR(shell_ready(sh), 20000, k_msleep(1)); + zassert_true(shell_ready(sh), "timed out waiting for dummy shell backend"); return NULL; }