Skip to content

Commit 25be35a

Browse files
committed
Set picotest_error_code in PICOTEST_CHECK_AND_ABORT
Fixes #2721
1 parent 8fcd44a commit 25be35a

File tree

1 file changed

+2
-0
lines changed
  • test/pico_test/include/pico

1 file changed

+2
-0
lines changed

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)