From a2953b1122f494585155cf7d257ecc81721edc20 Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Thu, 24 Nov 2022 15:42:15 +0100 Subject: [PATCH] test: Allow missing /tmp/.X5-lock files This was overzealous in commit 0f686e11540c. --- tests/test-umockdev-run.vala | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test-umockdev-run.vala b/tests/test-umockdev-run.vala index 3117b21..6b2b23c 100644 --- a/tests/test-umockdev-run.vala +++ b/tests/test-umockdev-run.vala @@ -591,7 +591,8 @@ t_input_touchpad () checked_remove (logfile); checked_remove (logfile + ".old"); // clean up lockfile after killed X server - checked_remove ("/tmp/.X5-lock"); + if (FileUtils.remove ("/tmp/.X5-lock") < 0) + debug("failed to clean up /tmp/.X5-lock: %m"); checked_remove ("/tmp/.X11-unix/X5"); assert_cmpstr (xinput_err, CompareOperator.EQ, "");