From: Sage Weil Date: Wed, 5 Apr 2017 02:49:27 +0000 (-0400) Subject: ceph_test_objectstore: error via derr too X-Git-Tag: v12.0.2~167^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F14333%2Fhead;p=ceph.git ceph_test_objectstore: error via derr too This helps establish timing relative to the log. Signed-off-by: Sage Weil --- diff --git a/src/test/objectstore/store_test.cc b/src/test/objectstore/store_test.cc index 2a69c72364cc..627a5337dbdf 100644 --- a/src/test/objectstore/store_test.cc +++ b/src/test/objectstore/store_test.cc @@ -18,6 +18,12 @@ #include #include #include +#include +#include +#include +#include +#include + #include "os/ObjectStore.h" #include "os/filestore/FileStore.h" #if defined(HAVE_LIBAIO) @@ -30,17 +36,15 @@ #include "common/Cond.h" #include "common/errno.h" #include "include/stringify.h" -#include -#include -#include -#include -#include #include "include/unordered_map.h" #include "store_test_fixture.h" + typedef boost::mt11213b gen_type; +#define dout_context g_ceph_context + #if GTEST_HAS_PARAM_TEST static bool bl_eq(bufferlist& expected, bufferlist& actual) @@ -53,6 +57,9 @@ static bool bl_eq(bufferlist& expected, bufferlist& actual) cout << "--- buffer lengths mismatch " << std::hex << "expected 0x" << expected.length() << " != actual 0x" << actual.length() << std::dec << std::endl; + derr << "--- buffer lengths mismatch " << std::hex + << "expected 0x" << expected.length() << " != actual 0x" + << actual.length() << std::dec << dendl; } auto len = MIN(expected.length(), actual.length()); while ( first