From: Samuel Just Date: Tue, 11 Mar 2014 21:17:47 +0000 (-0700) Subject: test/librados/watch_notify: create foo before watching X-Git-Tag: v0.78~33^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F1441%2Fhead;p=ceph.git test/librados/watch_notify: create foo before watching Signed-off-by: Samuel Just --- diff --git a/src/test/librados/watch_notify.cc b/src/test/librados/watch_notify.cc index b6216a23356e9..8616b5cb16ed4 100644 --- a/src/test/librados/watch_notify.cc +++ b/src/test/librados/watch_notify.cc @@ -70,6 +70,13 @@ TEST_F(LibRadosWatchNotifyPP, WatchNotifyTimeoutTestPP) { ioctx.set_notify_timeout(1); uint64_t handle; WatchNotifyTestCtx ctx; + + char buf[128]; + memset(buf, 0xcc, sizeof(buf)); + bufferlist bl1; + bl1.append(buf, sizeof(buf)); + ASSERT_EQ((int)sizeof(buf), ioctx.write("foo", bl1, sizeof(buf), 0)); + ASSERT_EQ(0, ioctx.watch("foo", 0, &handle, &ctx)); sem_destroy(&sem); }