]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
test/libcephfs: ensure that we set the mode of the libcephfs root before testing 12228/head
authorJeff Layton <jlayton@redhat.com>
Wed, 30 Nov 2016 12:37:52 +0000 (07:37 -0500)
committerJeff Layton <jlayton@redhat.com>
Wed, 30 Nov 2016 12:37:52 +0000 (07:37 -0500)
commit8a887edaffeed66f02f605ee78b9999ffd629a60
tree02750cdc0cd80d92f88a648e001cf812af7af547
parent2d02d2c95af9aed31a8579a2245b759f57b3a193
test/libcephfs: ensure that we set the mode of the libcephfs root before testing

Patrick noticed that the libcephfs tests failed to run unless they were
run after the ceph-fuse tests had run. The ceph-fuse tests set the root
of the share to mode 01777, but the libcephfs tests don't do that even
though they rely on the directory being world-writable.

Fix this by adding a new main() function for ceph_test_libcephfs, and
calling a function (copied from access.cc) that resets the permissions
of the root before running the tests.

Fixes: http://tracker.ceph.com/issues/18013
Signed-off-by: Jeff Layton <jlayton@redhat.com>
src/test/libcephfs/CMakeLists.txt
src/test/libcephfs/main.cc [new file with mode: 0644]