Commit Graph

2 Commits

Author SHA1 Message Date
Keir Mierle
0fa7f7dad4 pw_assert: PW_CHECK_OK() macro for Status
This adds PW_CHECK_OK() for both C and C++ to assert that a Status
object or enum is OK.

Change-Id: I85e963bffc39510769feeb93e0b331f044557e7e
2020-06-05 17:15:07 +00:00
Keir Mierle
8d2a84f13d pw_assert: Add real assert facade tests
This splits out the tests into backend compile tests and direct facade
tests, by directly depending on the facade implementation (rather than
going through the backend header redirection) and adding a fake
capturing assert backend that captures assert arguments.

Change-Id: Ie6d8c837d5abaa9f735f9e552791e939d6f2a245
2020-04-15 20:53:05 +00:00