Skip to content

Commit 5986b83

Browse files
Set picotest_error_code in PICOTEST_CHECK_AND_ABORT (#2722)
Fixes #2721
1 parent 2e3374b commit 5986b83

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • test/pico_test/include/pico

test/pico_test/include/pico/test.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,13 @@ but not sure that is implemented yet.
3939

4040
#define PICOTEST_CHECK_AND_ABORT(COND, MESSAGE) if (!(COND)) { \
4141
printf("Module %s: %s\n", picotest_module, MESSAGE); \
42+
picotest_error_code = -1; \
4243
return -1; \
4344
}
4445

4546
#define PICOTEST_CHECK_CHANNEL_AND_ABORT(CHANNEL, COND, MESSAGE) if (!(COND)) { \
4647
printf("Module %s, channel %d: %s\n", picotest_module, CHANNEL, MESSAGE); \
48+
picotest_error_code = -1; \
4749
return -1; \
4850
}
4951

0 commit comments

Comments
 (0)