|
@@ -38,9 +38,12 @@ extern void test_ok ( int success, const char *file, unsigned int line,
|
38
|
38
|
* Report test result
|
39
|
39
|
*
|
40
|
40
|
* @v success Test succeeded
|
|
41
|
+ * @v file File name
|
|
42
|
+ * @v line Line number
|
41
|
43
|
*/
|
42
|
|
-#define ok( success ) do { \
|
43
|
|
- test_ok ( (success), __FILE__, __LINE__, #success ); \
|
44
|
|
- } while ( 0 )
|
|
44
|
+#define okx( success, file, line ) \
|
|
45
|
+ test_ok ( success, file, line, #success )
|
|
46
|
+#define ok( success ) \
|
|
47
|
+ okx ( success, __FILE__, __LINE__ )
|
45
|
48
|
|
46
|
49
|
#endif /* _IPXE_TEST_H */
|