Archived
1
0
Fork 0

test/t_inotify-map.c: test inotify_map_get_wd.

This commit is contained in:
Henrik Hautakoski 2011-01-29 11:40:05 +01:00
parent b0bfbc3a0d
commit 222f34aed0

View file

@ -77,6 +77,18 @@ void test_inotify_unmap_all() {
teardown();
}
void test_inotify_map_get_wd() {
int i;
setup();
for(i=0; i < 4; i++)
assert(inotify_map_get_wd(pathref[i]) == wdref[i]);
teardown();
}
void test_inotify_map_lookup() {
int i;
@ -110,6 +122,7 @@ int main() {
test_inotify_unmap_wd();
test_inotify_unmap_path();
test_inotify_unmap_all();
test_inotify_map_get_wd();
test_inotify_map_lookup();
test_inotify_map_lookup_by_path();