]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph_test_rados_api_watch_notify: test ENOENT case
authorSage Weil <sage@redhat.com>
Tue, 18 Nov 2014 00:20:20 +0000 (16:20 -0800)
committerSage Weil <sage@redhat.com>
Thu, 4 Dec 2014 18:37:22 +0000 (10:37 -0800)
Signed-off-by: Sage Weil <sage@redhat.com>
src/test/librados/watch_notify.cc

index b9cb6f55183ea0320913c60193cecde2ee9b6a69..12ccac321b85fe0695b0de3bc190505fb28d0a45 100644 (file)
@@ -128,6 +128,11 @@ TEST_F(LibRadosWatchNotify, WatchNotify) {
   TestAlarm alarm;
   sem_wait(&sem);
   rados_unwatch(ioctx, "foo", handle);
+
+  // when dne ...
+  ASSERT_EQ(-ENOENT,
+      rados_watch(ioctx, "dne", 0, &handle, watch_notify_test_cb, NULL));
+
   sem_destroy(&sem);
 }