summaryrefslogtreecommitdiffstats
path: root/src/test/test-watch-pid.c
diff options
context:
space:
mode:
authorMike Yuan <me@yhndnzj.com>2024-08-17 13:20:09 +0200
committerMike Yuan <me@yhndnzj.com>2024-08-17 18:52:42 +0200
commit6c8ade30661f7d2d1b286c58050c4f9b1ed7b3e9 (patch)
tree48147942bd44670e5325990d4e2d39a057cdcd28 /src/test/test-watch-pid.c
parentnetwork: refuse files under API VFS specified in PrivateKeyFile= and friends (diff)
downloadsystemd-6c8ade30661f7d2d1b286c58050c4f9b1ed7b3e9.tar.xz
systemd-6c8ade30661f7d2d1b286c58050c4f9b1ed7b3e9.zip
core/unit: rename set_unit_path() -> setenv_unit_path()
The previous name is quite vague on what this precisely do.
Diffstat (limited to 'src/test/test-watch-pid.c')
-rw-r--r--src/test/test-watch-pid.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/test-watch-pid.c b/src/test/test-watch-pid.c
index 423a9be380..22cb404cf8 100644
--- a/src/test/test-watch-pid.c
+++ b/src/test/test-watch-pid.c
@@ -22,8 +22,8 @@ int main(int argc, char *argv[]) {
return log_tests_skipped("cgroupfs not available");
_cleanup_free_ char *unit_dir = NULL;
- assert_se(get_testdata_dir("units/", &unit_dir) >= 0);
- assert_se(set_unit_path(unit_dir) >= 0);
+ ASSERT_OK(get_testdata_dir("units/", &unit_dir));
+ ASSERT_OK(setenv_unit_path(unit_dir));
assert_se(runtime_dir = setup_fake_runtime_dir());