diff --git a/src/test/test-log.c b/src/test/test-log.c index 861309eb3aa..de8399dea8a 100644 --- a/src/test/test-log.c +++ b/src/test/test-log.c @@ -66,11 +66,11 @@ static void test_log_syntax(void) { } int main(int argc, char* argv[]) { - int target; - test_file(); - for (target = 0; target < _LOG_TARGET_MAX; target++) { + assert_se(log_info_errno(SYNTHETIC_ERRNO(EUCLEAN), "foo") == -EUCLEAN); + + for (int target = 0; target < _LOG_TARGET_MAX; target++) { log_set_target(target); log_open(); @@ -79,7 +79,5 @@ int main(int argc, char* argv[]) { test_log_syntax(); } - assert_se(log_info_errno(SYNTHETIC_ERRNO(EUCLEAN), "foo") == -EUCLEAN); - return 0; }