test/t_inotify-map.c: test inotify_map_get_wd.
This commit is contained in:
parent
b0bfbc3a0d
commit
222f34aed0
1 changed files with 13 additions and 0 deletions
|
|
@ -77,6 +77,18 @@ void test_inotify_unmap_all() {
|
||||||
teardown();
|
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() {
|
void test_inotify_map_lookup() {
|
||||||
|
|
||||||
int i;
|
int i;
|
||||||
|
|
@ -110,6 +122,7 @@ int main() {
|
||||||
test_inotify_unmap_wd();
|
test_inotify_unmap_wd();
|
||||||
test_inotify_unmap_path();
|
test_inotify_unmap_path();
|
||||||
test_inotify_unmap_all();
|
test_inotify_unmap_all();
|
||||||
|
test_inotify_map_get_wd();
|
||||||
test_inotify_map_lookup();
|
test_inotify_map_lookup();
|
||||||
test_inotify_map_lookup_by_path();
|
test_inotify_map_lookup_by_path();
|
||||||
|
|
||||||
|
|
|
||||||
Reference in a new issue