* test_name -- the name of the test, may be NULL
* test_comment -- a comment to print afterwards, may be NULL
*/
* test_name -- the name of the test, may be NULL
* test_comment -- a comment to print afterwards, may be NULL
*/
-unsigned int
-_gen_result(int ok, const char *func, const char *file, unsigned int line,
- const char *test_name, ...)
+unsigned int _gen_result(
+ int ok, const char *func, const char *file, unsigned int line, const char *test_name, ...)
/* Make sure the test name contains more than digits
and spaces. Emit an error message and exit if it
does */
/* Make sure the test name contains more than digits
and spaces. Emit an error message and exit if it
does */
- for(c = local_test_name; *c != '\0'; c++) {
- if(!isdigit((unsigned char) *c) && !isspace((unsigned char) *c)) {
+ for (c = local_test_name; *c != '\0'; c++) {
+ if (!isdigit((unsigned char) *c) && !isspace((unsigned char) *c)) {
- printf("ok %d # skip %s\n", test_count,
- skip_msg != NULL ?
- skip_msg : "libtap():malloc() failed");
+ printf("ok %d # skip %s\n",
+ test_count,
+ skip_msg != NULL ? skip_msg : "libtap():malloc() failed");
LOCK;
/* If plan_no_plan() wasn't called, and we don't have a plan,
and we're not skipping everything, then something happened
before we could produce any output */
LOCK;
/* If plan_no_plan() wasn't called, and we don't have a plan,
and we're not skipping everything, then something happened
before we could produce any output */
/* No plan provided, but now we know how many tests were run, and can
print the header at the end */
/* No plan provided, but now we know how many tests were run, and can
print the header at the end */