]>
Commit | Line | Data |
---|---|---|
427c49bc | 1 | /* |
d8f41ccd | 2 | * Copyright (c) 2006-2007,2012,2014 Apple Inc. All Rights Reserved. |
427c49bc A |
3 | */ |
4 | ||
5 | #include <stdlib.h> | |
6 | ||
7 | #include "test_regressions.h" | |
8 | ||
9 | int test_00_test(int argc, char *const *argv) | |
10 | { | |
11 | int rv = 1; | |
12 | plan_tests(6); | |
13 | ||
14 | TODO: { | |
15 | todo("ok 0 is supposed to fail"); | |
16 | ||
17 | rv = ok(0, "ok bad"); | |
18 | if (!rv) | |
19 | diag("ok bad not good today"); | |
20 | } | |
21 | rv &= ok(1, "ok ok"); | |
d8f41ccd | 22 | (void) rv; |
427c49bc A |
23 | #if 0 |
24 | SKIP: { | |
25 | skip("is bad will fail", 1, 0); | |
26 | ||
27 | if (!is(0, 4, "is bad")) | |
28 | diag("is bad not good today"); | |
29 | } | |
30 | SKIP: { | |
31 | skip("is ok should not be skipped", 1, 1); | |
32 | ||
33 | is(3, 3, "is ok"); | |
34 | } | |
35 | #endif | |
36 | isnt(0, 4, "isnt ok"); | |
37 | TODO: { | |
38 | todo("isnt bad is supposed to fail"); | |
39 | ||
40 | isnt(3, 3, "isnt bad"); | |
41 | } | |
42 | TODO: { | |
43 | todo("cmp_ok bad is supposed to fail"); | |
44 | ||
45 | cmp_ok(3, &&, 0, "cmp_ok bad"); | |
46 | } | |
47 | cmp_ok(3, &&, 3, "cmp_ok ok"); | |
48 | ||
49 | return 0; | |
50 | } |