Set picotest_error_code in PICOTEST_CHECK_AND_ABORT (#2722)

Fixes #2721
This commit is contained in:
Peter Harper 2026-01-05 17:30:19 +00:00 committed by GitHub
parent 2e3374ba37
commit 5986b8386c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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; \
}