mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-31 08:50:09 +01:00
test: remove created directories too
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@who-t.net>
This commit is contained in:
parent
4738c5cde5
commit
c81809d0aa
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue