Hi,
Is there some way to have cunit do a printf() when an assertion
evaluates to false?
Example:
rc = foo()
CU_ASSERT( rc == 0, printf("ERROR: foo returned %d", rc);
The printf() doesn't necessariliy need to be associated in this way.
The aim is to trigger a diagnostic printout when an assertion "fires".
Thanks,
-T
Is there some way to have cunit do a printf() when an assertion
evaluates to false?
Example:
rc = foo()
CU_ASSERT( rc == 0, printf("ERROR: foo returned %d", rc);
The printf() doesn't necessariliy need to be associated in this way.
The aim is to trigger a diagnostic printout when an assertion "fires".
Thanks,
-T
Comment