]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
test/librados_test_stub: define more stub functions 28250/head
authorKefu Chai <kchai@redhat.com>
Mon, 27 May 2019 05:04:41 +0000 (13:04 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 27 May 2019 05:12:29 +0000 (13:12 +0800)
commita28cb27f725ee6d216c67d82330cac7f11ed1edb
treeaa6d7f6b180cfe73bb3135494dcda243f3f0197c
parent939c0323363a3b83f9d3e02c57c66b298ceb6e4e
test/librados_test_stub: define more stub functions

this change helps to silence warnings like:

Failed to load class: cas
(/home/jenkins-build/build/workspace/ceph-pull-requests/build/lib/libcls_cas.so):
/home/jenkins-build/build/workspace/ceph-pull-requests/build/lib/libcls_cas.so:
undefined symbol:
_Z27cls_cxx_chunk_write_and_setPviiPN4ceph6buffer7v14_2_04listEjS4_i

currently, LibradosTestStub.cc  only offers the minimum set of APIs used by
class objects to support librbd related tests. but when
`TestClassHandler::open_class()` enumates the object classes and then
tries to load them, some of the classes fail to load due to unresolvable
symbols. it's fine in the sense that these classes are not tested by the
librbd tests. but these warning messages are just annoying and sometimes
misleading, so in this change, the missing symbols are added as dummy
stubs which just returns `-ENOTSUP` to silence the messages.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/test/librados_test_stub/LibradosTestStub.cc