#include <config.h>
#include <check.h>
#include <stdlib.h>
Defines | |
#define | FAIL_RET() do { fail(); return; } while(0) |
#define | EXPECT(x) fail_unless(x) |
#define | EXPECT_RET(x) do { fail_unless(x); if(!(x)) { return; }} while(0) |
#define | EXPECT_RETX(x, y) do { fail_unless(x); if(!(x)) { return y; }} while(0) |
#define | EXPECT_RETNULL(x) EXPECT_RETX(x, NULL) |
Typedefs | |
typedef Suite *( | suite_getter_fn )(void) |
typedef for a function returning a test suite |
#define EXPECT | ( | x | ) | fail_unless(x) |
#define EXPECT_RET | ( | x | ) | do { fail_unless(x); if(!(x)) { return; }} while(0) |
#define EXPECT_RETNULL | ( | x | ) | EXPECT_RETX(x, NULL) |
#define EXPECT_RETX | ( | x, | ||
y | ||||
) | do { fail_unless(x); if(!(x)) { return y; }} while(0) |
#define FAIL_RET | ( | ) | do { fail(); return; } while(0) |
typedef Suite*( suite_getter_fn)(void) |
typedef for a function returning a test suite