]> git.saurik.com Git - apple/security.git/blob - SecurityTests/regressions/test/00testtest.c
Security-57740.1.18.tar.gz
[apple/security.git] / SecurityTests / regressions / test / 00testtest.c
1 #include <stdlib.h>
2
3 #include "testmore.h"
4
5 int main(int argc, char *const *argv)
6 {
7 int rv = 1;
8 plan_tests(6);
9
10 TODO: {
11 todo("ok 0 is supposed to fail");
12
13 rv = ok(0, "ok bad");
14 if (!rv)
15 diag("ok bad not good today");
16 }
17 rv &= ok(1, "ok ok");
18 #if 0
19 SKIP: {
20 skip("is bad will fail", 1, 0);
21
22 if (!is(0, 4, "is bad"))
23 diag("is bad not good today");
24 }
25 SKIP: {
26 skip("is ok should not be skipped", 1, 1);
27
28 is(3, 3, "is ok");
29 }
30 #endif
31 isnt(0, 4, "isnt ok");
32 TODO: {
33 todo("isnt bad is supposed to fail");
34
35 isnt(3, 3, "isnt bad");
36 }
37 TODO: {
38 todo("cmp_ok bad is supposed to fail");
39
40 cmp_ok(3, &&, 0, "cmp_ok bad");
41 }
42 cmp_ok(3, &&, 3, "cmp_ok ok");
43
44 return 0;
45 }