]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
oom: Make sure temporary test file is in /tmp
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Sat, 27 May 2023 09:43:10 +0000 (11:43 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 30 May 2023 12:48:38 +0000 (14:48 +0200)
src/oom/test-oomd-util.c

index ef99d924bb12bb71d62b218d294482cfd2eed8a5..dc659b655131a9d90839beb1dbed701ce9a6113c 100644 (file)
@@ -204,7 +204,7 @@ static void test_oomd_update_cgroup_contexts_between_hashmaps(void) {
 }
 
 static void test_oomd_system_context_acquire(void) {
-        _cleanup_(unlink_tempfilep) char path[] = "/oomdgetsysctxtestXXXXXX";
+        _cleanup_(unlink_tempfilep) char path[] = "/tmp/oomdgetsysctxtestXXXXXX";
         _cleanup_close_ int fd = -EBADF;
         OomdSystemContext ctx;