From 222f34aed0c8a109438abff3fbf2aeb5c69a8e4a Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Sat, 29 Jan 2011 11:40:05 +0100 Subject: [PATCH] test/t_inotify-map.c: test inotify_map_get_wd. --- test/t_inotify-map.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/test/t_inotify-map.c b/test/t_inotify-map.c index 8568ef7..5066880 100644 --- a/test/t_inotify-map.c +++ b/test/t_inotify-map.c @@ -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();