From 0bf5f8668fdc1b0b6167dabb02e17c4cdf7e83cc Mon Sep 17 00:00:00 2001 From: Danny Al-Gaaf Date: Sat, 1 Mar 2014 01:24:37 +0100 Subject: [PATCH] store_test.cc: fix unchecked return value CID 1188126 (#1 of 1): Unchecked return value (CHECKED_RETURN) 2. check_return: Calling function "ObjectStore::stat(coll_t, ghobject_t const &, stat *, bool)" without checking return value (as is done elsewhere 8 out of 9 times). 3. unchecked_value: No check of the return value of "this->store->stat( coll_t(this->cid), hoid, &buf, false)". Signed-off-by: Danny Al-Gaaf --- src/test/objectstore/store_test.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/test/objectstore/store_test.cc b/src/test/objectstore/store_test.cc index b9c74abaf2eed..8133d4dc0e777 100644 --- a/src/test/objectstore/store_test.cc +++ b/src/test/objectstore/store_test.cc @@ -561,7 +561,8 @@ public: ++in_flight; } struct stat buf; - store->stat(cid, hoid, &buf); + int r = store->stat(cid, hoid, &buf); + ASSERT_EQ(0, r); ASSERT_TRUE(buf.st_size == contents[hoid].length()); { Mutex::Locker locker(lock); -- 2.39.5