From 25be35a37e3363dca2bfef896a45aaca601d72a9 Mon Sep 17 00:00:00 2001 From: Peter Harper Date: Mon, 17 Nov 2025 13:03:57 +0000 Subject: [PATCH] Set picotest_error_code in PICOTEST_CHECK_AND_ABORT 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 b444a95b1..c4fc028e5 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; \ }