summaryrefslogtreecommitdiffstats
path: root/src/test/test-path-util.c
diff options
context:
space:
mode:
authorIvan Kruglov <mail@ikruglov.com>2024-04-08 17:12:48 +0200
committerFrantisek Sumsal <frantisek@sumsal.cz>2024-04-10 16:57:30 +0200
commit5152b8459afc6570efa537605d3bbf47c067661e (patch)
tree62f1c0477d2c39f8834059086b317d79a3484237 /src/test/test-path-util.c
parentMerge pull request #32201 from aafeijoo-suse/test-minor-fixes (diff)
downloadsystemd-5152b8459afc6570efa537605d3bbf47c067661e.tar.xz
systemd-5152b8459afc6570efa537605d3bbf47c067661e.zip
ASSERT_NULL/ASSERT_NOT_NULL
Diffstat (limited to 'src/test/test-path-util.c')
-rw-r--r--src/test/test-path-util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/test-path-util.c b/src/test/test-path-util.c
index 5f36ae49f0..139bed76c4 100644
--- a/src/test/test-path-util.c
+++ b/src/test/test-path-util.c
@@ -687,7 +687,7 @@ TEST(path_strv_resolve) {
_cleanup_strv_free_ char **search_dirs = NULL;
_cleanup_strv_free_ char **absolute_dirs = NULL;
- assert_se(mkdtemp(tmp_dir) != NULL);
+ ASSERT_NOT_NULL(mkdtemp(tmp_dir));
search_dirs = strv_new("/dir1", "/dir2", "/dir3");
assert_se(search_dirs);
@@ -986,7 +986,7 @@ TEST(path_find_last_component) {
}
TEST(last_path_component) {
- assert_se(last_path_component(NULL) == NULL);
+ ASSERT_NULL(last_path_component(NULL));
assert_se(streq(last_path_component("a/b/c"), "c"));
assert_se(streq(last_path_component("a/b/c/"), "c/"));
assert_se(streq(last_path_component("/"), "/"));