diff options
Diffstat (limited to 'test/test.h')
| -rw-r--r-- | test/test.h | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/test/test.h b/test/test.h index c4f63d0..e60e5af 100644 --- a/test/test.h +++ b/test/test.h @@ -1,10 +1,5 @@ -/* test.h - the little harness the test programs share. - * - * No test framework, because a test suite with a dependency is a test suite - * that does not run at 3am. Each program in test/ is its own: it links the - * library, runs its own cases and reports its own count, so one failing file - * says which area broke rather than taking the whole run down with it. - */ +// No test framework: a suite with a dependency is a suite that does not run at +// 3am. Each program in test/ links the library and reports its own count. #ifndef TEST_H #define TEST_H @@ -61,8 +56,8 @@ static inline void note(const char *fmt, ...) fputc('\n', stdout); } -/* Where the fixtures are written. UNIT_TMPDIR is there for a build that runs - * the tests somewhere the source tree is not writable. */ +// Where the fixtures are written. UNIT_TMPDIR is there for a build that runs * +// the tests somewhere the source tree is not writable. static inline void test_init(const char *argv0) { const char *dir = getenv("UNIT_TMPDIR"); @@ -79,11 +74,11 @@ static inline int test_report(const char *what) return failures != 0; } -/* ------------------------------------------------------------- fixtures */ +// ------------------------------------------------------------- fixtures -/* A policy from a string. The file is unlinked straight after loading: the - * decisions are made in memory, and a test that left policies behind would - * leave them to be trusted. */ +// A policy from a string. The file is unlinked straight after loading: the +// decisions are made in memory, and a test that left policies behind would leave +// them to be trusted. static inline int load_text(policy_t *p, const char *text) { static int seq; |
