Searched hist:"3064 cb5736c189f46c20a165098fec2d6e90803e" (Results 1 – 2 of 2) sorted by relevance
/kvm-unit-tests/lib/ |
H A D | report.c | 3064cb5736c189f46c20a165098fec2d6e90803e Wed Oct 23 16:53:48 UTC 2024 Andrew Jones <andrew.jones@linux.dev> lib/report: Return pass/fail result from report
A nice pattern to use in order to try and maintain parsable reports, but also output unexpected values, is
if (!report(value == expected_value, "my test")) { report_info("failure due to unexpected value (received %d, expected %d)", value, expected_value); }
Reviewed-by: Claudio Imbrenda <imbrenda@linux.ibm.com> Signed-off-by: Andrew Jones <andrew.jones@linux.dev>
|
H A D | libcflat.h | 3064cb5736c189f46c20a165098fec2d6e90803e Wed Oct 23 16:53:48 UTC 2024 Andrew Jones <andrew.jones@linux.dev> lib/report: Return pass/fail result from report
A nice pattern to use in order to try and maintain parsable reports, but also output unexpected values, is
if (!report(value == expected_value, "my test")) { report_info("failure due to unexpected value (received %d, expected %d)", value, expected_value); }
Reviewed-by: Claudio Imbrenda <imbrenda@linux.ibm.com> Signed-off-by: Andrew Jones <andrew.jones@linux.dev>
|