]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cmake: Make the tests for finding Filesystem with more serious functions 26316/head
authorWillem Jan Withagen <wjw@digiware.nl>
Thu, 14 Feb 2019 12:16:53 +0000 (13:16 +0100)
committerWillem Jan Withagen <wjw@digiware.nl>
Thu, 14 Feb 2019 12:18:50 +0000 (13:18 +0100)
Otherwise it is linked agains lc++ on FreeBSD,a dn that will satisfy both
tested libraries.

Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
cmake/modules/FindStdFilesystem_test.cc

index 82f2a8b576baa45677ebabe9a957593de35f543a..8b308fff432f36bfe3e74573d07a4cd0101b6880 100644 (file)
@@ -9,5 +9,6 @@ namespace fs = std::experimental::filesystem;
 #endif
 
 int main() {
-  [[maybe_unused]] fs::path path("/");
+    fs::create_directory("sandbox");
+    fs::remove_all("sandbox");
 }