diff options
author | Jan Janssen <medhefgo@web.de> | 2021-11-24 12:00:02 +0100 |
---|---|---|
committer | Jan Janssen <medhefgo@web.de> | 2021-11-25 15:03:06 +0100 |
commit | 4f7452a8eb7a946efea927fae017d4d661097833 (patch) | |
tree | 413778cc0fb08fbbed0890130b5ba66c90581e61 /src/test/test-gpt.c | |
parent | test-time-util: Properly restore TZ variable (diff) | |
download | systemd-4f7452a8eb7a946efea927fae017d4d661097833.tar.xz systemd-4f7452a8eb7a946efea927fae017d4d661097833.zip |
test: Use TEST macro
This converts to TEST macro where it is trivial.
Some additional notable changes:
- simplify HAVE_LIBIDN #ifdef in test-dns-domain.c
- use saved_argc/saved_argv in test-copy.c, test-path-util.c,
test-tmpfiles.c and test-unit-file.c
Diffstat (limited to 'src/test/test-gpt.c')
-rw-r--r-- | src/test/test-gpt.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/src/test/test-gpt.c b/src/test/test-gpt.c index 7ee044ba50..30a93a83ec 100644 --- a/src/test/test-gpt.c +++ b/src/test/test-gpt.c @@ -10,12 +10,10 @@ #include "tests.h" #include "util.h" -static void test_gpt_types_against_architectures(void) { +TEST(gpt_types_against_architectures) { const char *prefix; int r; - log_info("/* %s */", __func__); - /* Dumps a table indicating for which architectures we know we have matching GPT partition * types. Also validates whether we can properly categorize the entries. */ @@ -51,11 +49,4 @@ static void test_gpt_types_against_architectures(void) { } } -int main(int argc, char *argv[]) { - - test_setup_logging(LOG_INFO); - - test_gpt_types_against_architectures(); - - return 0; -} +DEFINE_TEST_MAIN(LOG_INFO); |