commit - 52995679522f2b6c99ff43aa8a9d35f3fb3e68ee
commit + b638044ea2cf31ebaa7acb1353cd1e569306ec6f
blob - d907093070afcc952832df4461952aa38419c021
blob + 496d1d22a850d0a069918cd8be2b1b718a34753b
--- lang/c/test.h
+++ lang/c/test.h
* To run only the 'bar' family of tests:
*
* $ ./test bar
- * bar(0xff): OK
+ * bar(0xff) OK
* test.c:11: condition failed: (0x10 & mask) != 0
- * bar(0x0f): FAIL
+ * bar(0x0f) FAIL
*
* Running 'foo' and 'bar(0xff)':
*
* $ ./test foo bar\(0xf
- * foo(): OK
- * bar(0xff): OK
+ * foo() OK
+ * bar(0xff) OK
*
* A list or count of available tests can be produced by combining verbose
* mode with an impossible selection:
\
failed_ = 0; \
(X)(__VA_ARGS__); \
- printf("%s:\t%s\n", name, failed_ ? "FAIL" : "OK"); \
+ printf("%s\t%s\n", name, failed_ ? "FAIL" : "OK"); \
if (failed_ && getenv("K") == NULL) /* K = keep going */ \
exit(1); \
} while (0)