summaryrefslogtreecommitdiffstats
path: root/src/include/ipxe
diff options
context:
space:
mode:
authorMichael Brown2013-11-27 04:03:16 +0100
committerMichael Brown2013-11-27 12:27:45 +0100
commit1312c467ee6b3e158b1babb13735114dce8c3690 (patch)
tree8b90d8228adcc0c4150be02c9b309d8de9812337 /src/include/ipxe
parent[dhcpv6] Allow stateful DHCPv6 to apply obtained IPv6 addresses (diff)
downloadipxe-1312c467ee6b3e158b1babb13735114dce8c3690.tar.gz
ipxe-1312c467ee6b3e158b1babb13735114dce8c3690.tar.xz
ipxe-1312c467ee6b3e158b1babb13735114dce8c3690.zip
[test] Include failing code within failed test result output
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ipxe')
-rw-r--r--src/include/ipxe/test.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/include/ipxe/test.h b/src/include/ipxe/test.h
index 8c361d284..6b74ff007 100644
--- a/src/include/ipxe/test.h
+++ b/src/include/ipxe/test.h
@@ -31,15 +31,16 @@ struct self_test {
/** Declare a self-test */
#define __self_test __table_entry ( SELF_TESTS, 01 )
-extern void test_ok ( int success, const char *file, unsigned int line );
+extern void test_ok ( int success, const char *file, unsigned int line,
+ const char *test );
/**
* Report test result
*
* @v success Test succeeded
*/
-#define ok( success ) do { \
- test_ok ( (success), __FILE__, __LINE__ ); \
+#define ok( success ) do { \
+ test_ok ( (success), __FILE__, __LINE__, #success ); \
} while ( 0 )
#endif /* _IPXE_TEST_H */