inotify-map: unmap_path, return the amount of remaining paths associated with this wd.
This commit is contained in:
parent
ab91625700
commit
ff91ca59cd
2 changed files with 18 additions and 18 deletions
|
|
@ -63,15 +63,13 @@ void test_inotify_unmap_wd() {
|
|||
|
||||
void test_inotify_unmap_path() {
|
||||
|
||||
int i;
|
||||
|
||||
setup();
|
||||
|
||||
assert(inotify_unmap_path(pathref[0]));
|
||||
assert(inotify_unmap_path(pathref[1]));
|
||||
assert(inotify_unmap_path(pathref[2]));
|
||||
assert(inotify_unmap_path(pathref[0]) == 1);
|
||||
assert(inotify_unmap_path(pathref[1]) == 0);
|
||||
assert(inotify_unmap_path(pathref[2]) == 0);
|
||||
assert(inotify_unmap_path(pathref[3]) == 0);
|
||||
|
||||
|
||||
assert(inotify_map_isempty());
|
||||
|
||||
teardown();
|
||||
|
|
|
|||
Reference in a new issue