]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
test/libcephfs: address windows issues
authorLucian Petrut <lpetrut@cloudbasesolutions.com>
Mon, 5 Sep 2022 13:13:46 +0000 (13:13 +0000)
committerLucian Petrut <lpetrut@cloudbasesolutions.com>
Thu, 10 Nov 2022 07:38:13 +0000 (09:38 +0200)
commit363939d537d8866673e3d92caec5143e68d6ad5b
treefce22fb26887bda365e1cf8d079a7571a55c0c80
parentbd0c06e61f5df4308906953463f1151686cb03eb
test/libcephfs: address windows issues

This commit addresses a few issues that prevent the libcephfs from running
on Windows:

* added missing definitions to fs_compat.h
* the "nobody" user is ignored on Windows, which is why we'll skip the tests
  that rely on it
* sys/mman.h and sys/resource.h are not available on Windows and will be skipped
* skip rlimit, not available on Windows
* fork is not available on Windows, for now we'll avoid compiling those tests
  when targetting Windows. For what is worth, those are skipped on other
  platforms anyway but currently fail at compile time when using mingw.
* use "strchr" instead of "index" or "strchrnul"

Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
src/client/Client.cc
src/include/win32/fs_compat.h
src/test/libcephfs/acl.cc
src/test/libcephfs/flock.cc
src/test/libcephfs/recordlock.cc
src/test/libcephfs/test.cc
src/test/libcephfs/vxattr.cc