Archived
1
0
Fork 0

inotify-map: unmap_path, return the amount of remaining paths associated with this wd.

This commit is contained in:
Henrik Hautakoski 2011-02-20 10:50:14 +01:00
parent ab91625700
commit ff91ca59cd
2 changed files with 18 additions and 18 deletions

View file

@ -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();