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-arphrd-util.c | |
parent | 4d5ad9d951299c905453ac8e3769dc82b0a09fb4 (diff) | |
download | systemd-4f7452a8eb7a946efea927fae017d4d661097833.tar.gz |
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-arphrd-util.c')
-rw-r--r-- | src/test/test-arphrd-util.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/test/test-arphrd-util.c b/src/test/test-arphrd-util.c index f12388dcce..d8dd4649af 100644 --- a/src/test/test-arphrd-util.c +++ b/src/test/test-arphrd-util.c @@ -6,9 +6,7 @@ #include "string-util.h" #include "tests.h" -int main(int argc, const char *argv[]) { - test_setup_logging(LOG_INFO); - +TEST(arphrd) { for (int i = 0; i <= ARPHRD_VOID + 1; i++) { const char *name; @@ -23,6 +21,6 @@ int main(int argc, const char *argv[]) { assert_se(arphrd_to_name(ARPHRD_VOID + 1) == NULL); assert_se(arphrd_from_name("huddlduddl") == -EINVAL); assert_se(arphrd_from_name("") == -EINVAL); - - return 0; } + +DEFINE_TEST_MAIN(LOG_INFO); |