mirror of
https://github.com/raspberrypi/pico-sdk.git
synced 2026-01-27 17:37:20 +01:00
Set picotest_error_code in PICOTEST_CHECK_AND_ABORT (#2722)
Fixes #2721
This commit is contained in:
parent
2e3374ba37
commit
5986b8386c
1 changed files with 2 additions and 0 deletions
|
|
@ -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; \
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue