]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/test/test-ask-password-api.c
test: Use TEST macro
[thirdparty/systemd.git] / src / test / test-ask-password-api.c
index 06158acf12bffb243c589d0b8f44aea6e39f18bb..b24159e2aa7180d3eaf09ac7da6905151f9f6d3e 100644 (file)
@@ -4,7 +4,7 @@
 #include "strv.h"
 #include "tests.h"
 
-static void test_ask_password(void) {
+TEST(ask_password) {
         int r;
         _cleanup_strv_free_ char **ret = NULL;
 
@@ -18,9 +18,4 @@ static void test_ask_password(void) {
         }
 }
 
-int main(int argc, char **argv) {
-        test_setup_logging(LOG_DEBUG);
-
-        test_ask_password();
-        return EXIT_SUCCESS;
-}
+DEFINE_TEST_MAIN(LOG_DEBUG);