From 5986b8386ca7a0051af33e2377d2fddf6d9861e4 Mon Sep 17 00:00:00 2001 From: Peter Harper <77111776+peterharperuk@users.noreply.github.com> Date: Mon, 5 Jan 2026 17:30:19 +0000 Subject: [PATCH] Set picotest_error_code in PICOTEST_CHECK_AND_ABORT (#2722) Fixes #2721 --- test/pico_test/include/pico/test.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/pico_test/include/pico/test.h b/test/pico_test/include/pico/test.h index b444a95b..c4fc028e 100644 --- a/test/pico_test/include/pico/test.h +++ b/test/pico_test/include/pico/test.h @@ -39,11 +39,13 @@ but not sure that is implemented yet. #define PICOTEST_CHECK_AND_ABORT(COND, MESSAGE) if (!(COND)) { \ printf("Module %s: %s\n", picotest_module, MESSAGE); \ + picotest_error_code = -1; \ return -1; \ } #define PICOTEST_CHECK_CHANNEL_AND_ABORT(CHANNEL, COND, MESSAGE) if (!(COND)) { \ printf("Module %s, channel %d: %s\n", picotest_module, CHANNEL, MESSAGE); \ + picotest_error_code = -1; \ return -1; \ }