[PATCH libinput 02/10] test: remove created directories too

Peter Hutterer peter.hutterer at who-t.net
Mon May 28 08:08:28 UTC 2018


If we created it, remove it again. No change because we're not adding any of
the directories yet.

Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
 test/litest.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/test/litest.c b/test/litest.c
index 6624d82d..97039ce2 100644
--- a/test/litest.c
+++ b/test/litest.c
@@ -741,6 +741,7 @@ litest_signal(int sig)
 	list_for_each_safe(f, tmp, &created_files_list, link) {
 		list_remove(&f->link);
 		unlink(f->path);
+		rmdir(f->path);
 		/* in the sighandler, we can't free */
 	}
 
@@ -1217,6 +1218,7 @@ litest_remove_udev_rules(struct list *created_files_list)
 	list_for_each_safe(f, tmp, created_files_list, link) {
 		list_remove(&f->link);
 		unlink(f->path);
+		rmdir(f->path);
 		free(f->path);
 		free(f);
 	}
-- 
2.14.3



More information about the wayland-devel mailing list