diff options
Diffstat (limited to 'tap/tests/skip')
| -rw-r--r-- | tap/tests/skip/test.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/tap/tests/skip/test.c b/tap/tests/skip/test.c index d8f3eafd..789812e2 100644 --- a/tap/tests/skip/test.c +++ b/tap/tests/skip/test.c | |||
| @@ -28,29 +28,27 @@ | |||
| 28 | 28 | ||
| 29 | #include "tap.h" | 29 | #include "tap.h" |
| 30 | 30 | ||
| 31 | int | 31 | int main(int argc, char *argv[]) { |
| 32 | main(int argc, char *argv[]) | ||
| 33 | { | ||
| 34 | unsigned int rc = 0; | 32 | unsigned int rc = 0; |
| 35 | unsigned int side_effect = 0; | 33 | unsigned int side_effect = 0; |
| 36 | 34 | ||
| 37 | rc = plan_tests(4); | 35 | rc = plan_tests(4); |
| 38 | diag("Returned: %d", rc); | 36 | diag("Returned: %d", rc); |
| 39 | 37 | ||
| 40 | rc = ok(1 == 1, "1 equals 1"); /* Should always work */ | 38 | rc = ok(1 == 1, "1 equals 1"); /* Should always work */ |
| 41 | diag("Returned: %d", rc); | 39 | diag("Returned: %d", rc); |
| 42 | 40 | ||
| 43 | do { | 41 | do { |
| 44 | if(1) { | 42 | if (1) { |
| 45 | rc = skip(1, "Testing skipping"); | 43 | rc = skip(1, "Testing skipping"); |
| 46 | continue; | 44 | continue; |
| 47 | } | 45 | } |
| 48 | 46 | ||
| 49 | side_effect++; | 47 | side_effect++; |
| 50 | 48 | ||
| 51 | ok(side_effect == 1, "side_effect checked out"); | 49 | ok(side_effect == 1, "side_effect checked out"); |
| 52 | 50 | ||
| 53 | } while(0); | 51 | } while (0); |
| 54 | 52 | ||
| 55 | diag("Returned: %d", rc); | 53 | diag("Returned: %d", rc); |
| 56 | 54 | ||
