From 00cbf8bcca9d047eead535ebd5bc986365b04426 Mon Sep 17 00:00:00 2001 From: Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> Date: Thu, 31 Oct 2024 15:24:53 +0100 Subject: tap: clang-format --- tap/tests/diag/test.c | 4 +--- tap/tests/fail/test.c | 4 +--- tap/tests/ok/ok-hash/test.c | 8 +++----- tap/tests/ok/ok-numeric/test.c | 4 +--- tap/tests/ok/ok/test.c | 4 +--- tap/tests/pass/test.c | 4 +--- tap/tests/plan/no-tests/test.c | 4 +--- tap/tests/plan/no_plan/test.c | 4 +--- tap/tests/plan/not-enough-tests/test.c | 4 +--- tap/tests/plan/sane/test.c | 4 +--- tap/tests/plan/skip_all/test.c | 4 +--- tap/tests/plan/too-many-plans/test.c | 4 +--- tap/tests/plan/too-many-tests/test.c | 4 +--- tap/tests/skip/test.c | 12 +++++------- tap/tests/todo/test.c | 6 ++---- 15 files changed, 22 insertions(+), 52 deletions(-) (limited to 'tap/tests') diff --git a/tap/tests/diag/test.c b/tap/tests/diag/test.c index 401db647..b0a5a4f5 100644 --- a/tap/tests/diag/test.c +++ b/tap/tests/diag/test.c @@ -28,9 +28,7 @@ #include "tap.h" -int -main(int argc, char *argv[]) -{ +int main(int argc, char *argv[]) { unsigned int rc = 0; plan_tests(2); diff --git a/tap/tests/fail/test.c b/tap/tests/fail/test.c index 621b6c29..18e16954 100644 --- a/tap/tests/fail/test.c +++ b/tap/tests/fail/test.c @@ -28,9 +28,7 @@ #include "tap.h" -int -main(int argc, char *argv[]) -{ +int main(int argc, char *argv[]) { unsigned int rc = 0; rc = plan_tests(2); diff --git a/tap/tests/ok/ok-hash/test.c b/tap/tests/ok/ok-hash/test.c index 16be137a..82f65b08 100644 --- a/tap/tests/ok/ok-hash/test.c +++ b/tap/tests/ok/ok-hash/test.c @@ -28,9 +28,7 @@ #include "tap.h" -int -main(int argc, char *argv[]) -{ +int main(int argc, char *argv[]) { unsigned int rc = 0; rc = plan_tests(4); @@ -42,11 +40,11 @@ main(int argc, char *argv[]) rc = ok(1, "Test with one # hash"); diag("Returned: %d", rc); - rc = ok(1, "Test with # two # hashes"); + rc = ok(1, "Test with # two # hashes"); diag("Returned: %d", rc); rc = ok(1, "Test with ## back to back hashes"); diag("Returned: %d", rc); - + return exit_status(); } diff --git a/tap/tests/ok/ok-numeric/test.c b/tap/tests/ok/ok-numeric/test.c index 0e33a748..46113f49 100644 --- a/tap/tests/ok/ok-numeric/test.c +++ b/tap/tests/ok/ok-numeric/test.c @@ -28,9 +28,7 @@ #include "tap.h" -int -main(int argc, char *argv[]) -{ +int main(int argc, char *argv[]) { unsigned int rc = 0; rc = plan_tests(3); diff --git a/tap/tests/ok/ok/test.c b/tap/tests/ok/ok/test.c index ae04f2e4..8ef0bcd8 100644 --- a/tap/tests/ok/ok/test.c +++ b/tap/tests/ok/ok/test.c @@ -28,9 +28,7 @@ #include "tap.h" -int -main(int argc, char *argv[]) -{ +int main(int argc, char *argv[]) { unsigned int rc = 0; rc = plan_tests(5); diff --git a/tap/tests/pass/test.c b/tap/tests/pass/test.c index 39d8a7c1..73df20cb 100644 --- a/tap/tests/pass/test.c +++ b/tap/tests/pass/test.c @@ -28,9 +28,7 @@ #include "tap.h" -int -main(int argc, char *argv[]) -{ +int main(int argc, char *argv[]) { unsigned int rc = 0; rc = plan_tests(2); diff --git a/tap/tests/plan/no-tests/test.c b/tap/tests/plan/no-tests/test.c index 78c5d371..f70ec8d3 100644 --- a/tap/tests/plan/no-tests/test.c +++ b/tap/tests/plan/no-tests/test.c @@ -28,9 +28,7 @@ #include "tap.h" -int -main(int argc, char *argv[]) -{ +int main(int argc, char *argv[]) { unsigned int rc = 0; rc = plan_tests(0); diff --git a/tap/tests/plan/no_plan/test.c b/tap/tests/plan/no_plan/test.c index 5cffbdc2..4c25d5f2 100644 --- a/tap/tests/plan/no_plan/test.c +++ b/tap/tests/plan/no_plan/test.c @@ -28,9 +28,7 @@ #include "tap.h" -int -main(int argc, char *argv[]) -{ +int main(int argc, char *argv[]) { unsigned int rc = 0; rc = plan_no_plan(); diff --git a/tap/tests/plan/not-enough-tests/test.c b/tap/tests/plan/not-enough-tests/test.c index a9ec64f2..eacc07eb 100644 --- a/tap/tests/plan/not-enough-tests/test.c +++ b/tap/tests/plan/not-enough-tests/test.c @@ -28,9 +28,7 @@ #include "tap.h" -int -main(int argc, char *argv[]) -{ +int main(int argc, char *argv[]) { unsigned int rc = 0; rc = plan_tests(1); diff --git a/tap/tests/plan/sane/test.c b/tap/tests/plan/sane/test.c index 0843d3af..17bf8d16 100644 --- a/tap/tests/plan/sane/test.c +++ b/tap/tests/plan/sane/test.c @@ -28,9 +28,7 @@ #include "tap.h" -int -main(int argc, char *argv[]) -{ +int main(int argc, char *argv[]) { unsigned int rc = 0; rc = plan_tests(1); diff --git a/tap/tests/plan/skip_all/test.c b/tap/tests/plan/skip_all/test.c index 31722da9..4e37e1ae 100644 --- a/tap/tests/plan/skip_all/test.c +++ b/tap/tests/plan/skip_all/test.c @@ -26,9 +26,7 @@ #include "tap.h" -int -main(int argc, char *argv[]) -{ +int main(int argc, char *argv[]) { unsigned int rc = 0; rc = plan_skip_all("No good reason"); diff --git a/tap/tests/plan/too-many-plans/test.c b/tap/tests/plan/too-many-plans/test.c index b189cb72..5f45bc48 100644 --- a/tap/tests/plan/too-many-plans/test.c +++ b/tap/tests/plan/too-many-plans/test.c @@ -28,9 +28,7 @@ #include "tap.h" -int -main(int argc, char *argv[]) -{ +int main(int argc, char *argv[]) { unsigned int rc = 0; rc = plan_tests(1); diff --git a/tap/tests/plan/too-many-tests/test.c b/tap/tests/plan/too-many-tests/test.c index 0f724104..0b2ee161 100644 --- a/tap/tests/plan/too-many-tests/test.c +++ b/tap/tests/plan/too-many-tests/test.c @@ -28,9 +28,7 @@ #include "tap.h" -int -main(int argc, char *argv[]) -{ +int main(int argc, char *argv[]) { unsigned int rc = 0; rc = plan_tests(5); 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 @@ #include "tap.h" -int -main(int argc, char *argv[]) -{ +int main(int argc, char *argv[]) { unsigned int rc = 0; unsigned int side_effect = 0; rc = plan_tests(4); diag("Returned: %d", rc); - rc = ok(1 == 1, "1 equals 1"); /* Should always work */ + rc = ok(1 == 1, "1 equals 1"); /* Should always work */ diag("Returned: %d", rc); do { - if(1) { + if (1) { rc = skip(1, "Testing skipping"); continue; } - + side_effect++; ok(side_effect == 1, "side_effect checked out"); - } while(0); + } while (0); diag("Returned: %d", rc); diff --git a/tap/tests/todo/test.c b/tap/tests/todo/test.c index ac6339a7..0cd2fb3f 100644 --- a/tap/tests/todo/test.c +++ b/tap/tests/todo/test.c @@ -28,16 +28,14 @@ #include "tap.h" -int -main(int argc, char *argv[]) -{ +int main(int argc, char *argv[]) { unsigned int rc = 0; unsigned int side_effect = 0; rc = plan_tests(5); diag("Returned: %d", rc); - rc = ok(1 == 1, "1 equals 1"); /* Should always work */ + rc = ok(1 == 1, "1 equals 1"); /* Should always work */ diag("Returned: %d", rc); todo_start("For testing purposes"); -- cgit v1.2.3-74-g34f1