]>
git.saurik.com Git - apple/libdispatch.git/blob - testing/dispatch_test.h
5 void test_start(const char* desc
);
7 void test_stop_after_delay(void *delay
);
9 void _test_ptr_null(const char* file
, long line
, const char* desc
, const void* ptr
);
10 #define test_ptr_null(a,b) _test_ptr_null(__FILE__, __LINE__, a, b)
12 void _test_ptr_notnull(const char* file
, long line
, const char* desc
, const void* ptr
);
13 #define test_ptr_notnull(a,b) _test_ptr_notnull(__FILE__, __LINE__, a, b)
15 void _test_ptr(const char* file
, long line
, const char* desc
, const void* actual
, const void* expected
);
16 #define test_ptr(a,b,c) _test_ptr(__FILE__, __LINE__, a, b, c)
18 void _test_long(const char* file
, long line
, const char* desc
, long actual
, long expected
);
19 #define test_long(a,b,c) _test_long(__FILE__, __LINE__, a, b, c)
21 void _test_long_less_than(const char* file
, long line
, const char* desc
, long actual
, long max_expected
);
22 #define test_long_less_than(a,b,c) _test_long_less_than(__FILE__, __LINE__, a, b, c)
24 void _test_double_less_than_or_equal(const char* file
, long line
, const char* desc
, double val
, double max_expected
);
25 #define test_double_less_than_or_equal(d, v, m) _test_double_less_than(__FILE__, __LINE__, d, v, m)
27 void _test_double_less_than(const char* file
, long line
, const char* desc
, double val
, double max_expected
);
28 #define test_double_less_than(d, v, m) _test_double_less_than(__FILE__, __LINE__, d, v, m)
30 void _test_errno(const char* file
, long line
, const char* desc
, long actual
, long expected
);
31 #define test_errno(a,b,c) _test_errno(__FILE__, __LINE__, a, b, c)