]>
git.saurik.com Git - apple/dyld.git/blob - unit-tests/include/test.h
4 #define DEFINE_TEST_FUNC(name) \
8 name(const char *format, ...) \
11 va_start(args, format); \
12 common(stdout, #name, format, args); \
20 common(FILE *file
, const char *prefix
, const char *format
, va_list args
)
22 fprintf(file
, "%s \"", prefix
);
23 vfprintf(file
, format
, args
);
24 fprintf(file
, "\"\n"); // should check for trailing newline
28 DEFINE_TEST_FUNC(PASS
);
29 DEFINE_TEST_FUNC(XPASS
);
30 DEFINE_TEST_FUNC(FAIL
);
31 DEFINE_TEST_FUNC(XFAIL
);
33 DEFINE_TEST_FUNC(UNTESTED
);
34 DEFINE_TEST_FUNC(UNSUPPORTED
);
35 DEFINE_TEST_FUNC(UNRESOLVED
);