From 27ceb16903d8d3856638e9e56221799720e835da Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Mon, 17 Nov 2014 16:20:20 -0800 Subject: [PATCH] ceph_test_rados_api_watch_notify: test ENOENT case Signed-off-by: Sage Weil --- src/test/librados/watch_notify.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/test/librados/watch_notify.cc b/src/test/librados/watch_notify.cc index b9cb6f55183ea..12ccac321b85f 100644 --- a/src/test/librados/watch_notify.cc +++ b/src/test/librados/watch_notify.cc @@ -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); } -- 2.39.5