67 #define ADD_SUITE(suite) abts_add_suite(suite, __FILE__);
76 const unsigned int actual,
int lineno);
78 const unsigned int actual,
int lineno);
80 const long actual,
int lineno);
82 const long actual,
int lineno);
84 const unsigned long actual,
int lineno);
86 const unsigned long actual,
int lineno);
88 const long long actual,
int lineno);
90 const long long actual,
int lineno);
92 const unsigned long long actual,
int lineno);
94 const unsigned long long actual,
int lineno);
99 size_t n,
int lineno);
109 #define ABTS_INT_EQUAL(a, b, c) abts_int_equal(a, b, c, __LINE__)
110 #define ABTS_INT_NEQUAL(a, b, c) abts_int_nequal(a, b, c, __LINE__)
111 #define ABTS_UINT_EQUAL(a, b, c) abts_uint_equal(a, b, c, __LINE__)
112 #define ABTS_UINT_NEQUAL(a, b, c) abts_uint_nequal(a, b, c, __LINE__)
113 #define ABTS_LONG_EQUAL(a, b, c) abts_long_equal(a, b, c, __LINE__)
114 #define ABTS_LONG_NEQUAL(a, b, c) abts_long_nequal(a, b, c, __LINE__)
115 #define ABTS_ULONG_EQUAL(a, b, c) abts_ulong_equal(a, b, c, __LINE__)
116 #define ABTS_ULONG_NEQUAL(a, b, c) abts_ulong_nequal(a, b, c, __LINE__)
117 #define ABTS_LLONG_EQUAL(a, b, c) abts_llong_equal(a, b, c, __LINE__)
118 #define ABTS_LLONG_NEQUAL(a, b, c) abts_llong_nequal(a, b, c, __LINE__)
119 #define ABTS_ULLONG_EQUAL(a, b, c) abts_ullong_equal(a, b, c, __LINE__)
120 #define ABTS_ULLONG_NEQUAL(a, b, c) abts_ullong_nequal(a, b, c, __LINE__)
121 #define ABTS_SIZE_EQUAL(a, b, c) abts_size_equal(a, b, c, __LINE__)
122 #define ABTS_SIZE_NEQUAL(a, b, c) abts_size_nequal(a, b, c, __LINE__)
123 #define ABTS_STR_EQUAL(a, b, c) abts_str_equal(a, b, c, __LINE__)
124 #define ABTS_STR_NEQUAL(a, b, c, d) abts_str_nequal(a, b, c, d, __LINE__)
125 #define ABTS_PTR_NOTNULL(a, b) abts_ptr_notnull(a, b, __LINE__)
126 #define ABTS_PTR_EQUAL(a, b, c) abts_ptr_equal(a, b, c, __LINE__)
127 #define ABTS_TRUE(a, b) abts_true(a, b, __LINE__);
128 #define ABTS_FAIL(a, b) abts_fail(a, b, __LINE__);
129 #define ABTS_NOT_IMPL(a, b) abts_not_impl(a, b, __LINE__);
130 #define ABTS_ASSERT(a, b, c) abts_assert(a, b, c, __LINE__);
134 #define ABTS_SKIP(tc, data, msg) do { \
136 abts_skip((tc), (msg), __LINE__); \
void abts_llong_equal(abts_case *tc, const long long expected, const long long actual, int lineno)
void(* test_func)(abts_case *tc, void *data)
Definition: abts.h:65
void abts_skip(abts_case *tc, const char *message, int lineno)
void abts_uint_nequal(abts_case *tc, const unsigned int expected, const unsigned int actual, int lineno)
void abts_ullong_equal(abts_case *tc, const unsigned long long expected, const unsigned long long actual, int lineno)
void abts_run_test(abts_suite *ts, test_func f, void *value)
void abts_ullong_nequal(abts_case *tc, const unsigned long long expected, const unsigned long long actual, int lineno)
abts_suite * run_tests(abts_suite *suite)
void abts_ptr_notnull(abts_case *tc, const void *ptr, int lineno)
void abts_not_impl(abts_case *tc, const char *message, int lineno)
void abts_size_nequal(abts_case *tc, size_t expected, size_t actual, int lineno)
void abts_ulong_nequal(abts_case *tc, const unsigned long expected, const unsigned long actual, int lineno)
void abts_true(abts_case *tc, int condition, int lineno)
void abts_long_equal(abts_case *tc, const long expected, const long actual, int lineno)
void abts_str_equal(abts_case *tc, const char *expected, const char *actual, int lineno)
void abts_str_nequal(abts_case *tc, const char *expected, const char *actual, size_t n, int lineno)
void abts_ptr_equal(abts_case *tc, const void *expected, const void *actual, int lineno)
void abts_fail(abts_case *tc, const char *message, int lineno)
abts_suite * abts_add_suite(abts_suite *suite, const char *suite_name)
void abts_long_nequal(abts_case *tc, const long expected, const long actual, int lineno)
void abts_uint_equal(abts_case *tc, const unsigned int expected, const unsigned int actual, int lineno)
void abts_ulong_equal(abts_case *tc, const unsigned long expected, const unsigned long actual, int lineno)
void abts_log_message(const char *fmt,...)
void abts_llong_nequal(abts_case *tc, const long long expected, const long long actual, int lineno)
void abts_size_equal(abts_case *tc, size_t expected, size_t actual, int lineno)
abts_suite * run_tests1(abts_suite *suite)
void abts_assert(abts_case *tc, const char *message, int condition, int lineno)
void abts_int_equal(abts_case *tc, const int expected, const int actual, int lineno)
void abts_int_nequal(abts_case *tc, const int expected, const int actual, int lineno)
int failed
Definition: abts.h:59
sub_suite * suite
Definition: abts.h:61
int skipped
Definition: abts.h:60
sub_suite * tail
Definition: abts.h:54
sub_suite * head
Definition: abts.h:53
char * name
Definition: abts.h:42
int failed
Definition: abts.h:44
int not_impl
Definition: abts.h:47
int num_test
Definition: abts.h:43
struct sub_suite * next
Definition: abts.h:48
int not_run
Definition: abts.h:46
int skipped
Definition: abts.h:45