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

Peter Hutterer peter.hutterer at who-t.net
Fri Jun 8 06:00:09 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 0e050789..9d711098 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 */
 	}
 
@@ -1219,6 +1220,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.4



More information about the wayland-devel mailing list