summaryrefslogtreecommitdiffstats
path: root/tap/tests/skip
diff options
context:
space:
mode:
authorLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2024-11-07 09:58:44 (GMT)
committerGitHub <noreply@github.com>2024-11-07 09:58:44 (GMT)
commitb47b5b6fa06ac7ac6f284c7278890f3820100dd8 (patch)
treebe193ae0e79f2620c02d1f41dfad4375511d3033 /tap/tests/skip
parentcace8759c98a1d861c4318afa1d207d869d02646 (diff)
parent00cbf8bcca9d047eead535ebd5bc986365b04426 (diff)
downloadmonitoring-plugins-b47b5b6fa06ac7ac6f284c7278890f3820100dd8.tar.gz
Merge pull request #2036 from RincewindsHat/cleanup/tap
tap: clang-format
Diffstat (limited to 'tap/tests/skip')
-rw-r--r--tap/tests/skip/test.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/tap/tests/skip/test.c b/tap/tests/skip/test.c
index d8f3eaf..789812e 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
31int 31int main(int argc, char *argv[]) {
32main(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