]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: make use of strv_isempty() 22301/head
authorFrantisek Sumsal <frantisek@sumsal.cz>
Sat, 29 Jan 2022 21:36:29 +0000 (22:36 +0100)
committerFrantisek Sumsal <frantisek@sumsal.cz>
Sat, 29 Jan 2022 21:36:29 +0000 (22:36 +0100)
src/test/test-load-fragment.c

index 68172be43e42439f9b0e7edb6fe982109ab163b2..9e5ae855976e4986ddb321fa612284ee69a135e3 100644 (file)
@@ -803,7 +803,7 @@ TEST(config_parse_unit_env_file) {
                                       "EnvironmentFile", 0, "not-absolute",
                                        &files, u);
         assert_se(r == 0);
-        assert_se(strv_length(files) == 0);
+        assert_se(strv_isempty(files));
 
         r = config_parse_unit_env_file(u->id, "fake", 1, "section", 1,
                                       "EnvironmentFile", 0, "/absolute1",