| 
    dpkg 1.22.7-3-g89f48
    
   | 
 
Macros | |
| #define | test_bail(reason) | 
| #define | test_xstringify(str) #str | 
| #define | test_stringify(str) test_xstringify(str) | 
| #define | test_alloc(ptr) test_alloc((ptr), "cannot allocate memory for " #ptr " in " __FILE__ ":" test_stringify(__LINE__)) | 
| #define | test_try(jmp) | 
| #define | test_catch else | 
| #define | test_finally pop_error_context(ehflag_normaltidy); | 
| #define | test_get_srcdir() test_get_envdir("srcdir") | 
| #define | test_get_builddir() test_get_envdir("builddir") | 
| #define | test_plan(n) printf("1..%d\n", n); | 
| #define | test_skip_all(reason) | 
| #define | test_skip(reason) printf("ok %d # SKIP %s\n", test_id++, (reason)) | 
| #define | test_skip_block(cond) | 
| #define | test_todo(a, reason, desc) | 
| #define | test_todo_block(reason) | 
| #define | test_case(a, fmt, ...) | 
| #define | test_pass(a) test_case((a), "pass %s", #a) | 
| #define | test_fail(a) test_case(!(a), "fail %s", #a) | 
| #define | test_str(a, op, b) test_case(strcmp((a), (b)) op 0, "strcmp '%s' %s '%s'", a, #op, b) | 
| #define | test_mem(a, op, b, size) test_case(memcmp((a), (b), (size)) op 0, "memcmp %p %s %p", a, #op, b) | 
| #define | test_warn(e) | 
| #define | test_error(e) | 
| #define test_alloc | ( | ptr | ) | test_alloc((ptr), "cannot allocate memory for " #ptr " in " __FILE__ ":" test_stringify(__LINE__)) | 
| #define test_bail | ( | reason | ) | 
| #define test_case | ( | a, | |
| fmt, | |||
| ... | |||
| ) | 
| #define test_catch else | 
| #define test_error | ( | e | ) | 
| #define test_fail | ( | a | ) | test_case(!(a), "fail %s", #a) | 
| #define test_finally pop_error_context(ehflag_normaltidy); | 
| #define test_get_builddir | ( | ) | test_get_envdir("builddir") | 
| #define test_get_srcdir | ( | ) | test_get_envdir("srcdir") | 
| #define test_mem | ( | a, | |
| op, | |||
| b, | |||
| size | |||
| ) | test_case(memcmp((a), (b), (size)) op 0, "memcmp %p %s %p", a, #op, b) | 
| #define test_pass | ( | a | ) | test_case((a), "pass %s", #a) | 
| #define test_plan | ( | n | ) | printf("1..%d\n", n); | 
| #define test_skip | ( | reason | ) | printf("ok %d # SKIP %s\n", test_id++, (reason)) | 
| #define test_skip_all | ( | reason | ) | 
| #define test_skip_block | ( | cond | ) | 
| #define test_str | ( | a, | |
| op, | |||
| b | |||
| ) | test_case(strcmp((a), (b)) op 0, "strcmp '%s' %s '%s'", a, #op, b) | 
| #define test_stringify | ( | str | ) | test_xstringify(str) | 
| #define test_todo | ( | a, | |
| reason, | |||
| desc | |||
| ) | 
| #define test_todo_block | ( | reason | ) | 
| #define test_try | ( | jmp | ) | 
| #define test_warn | ( | e | ) | 
| #define test_xstringify | ( | str | ) | #str |