]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/leaf/test/capture_result_state_test.cpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / libs / leaf / test / capture_result_state_test.cpp
index be8b132a9668d3eb5db748071d0fea5d9ae57301..1d1162315eac4fe80bd3201ff02a61ec3368a0d8 100644 (file)
@@ -1,11 +1,30 @@
-// Copyright (c) 2018-2020 Emil Dotchevski and Reverge Studios, Inc.
+// Copyright 2018-2022 Emil Dotchevski and Reverge Studios, Inc.
 
 // Distributed under the Boost Software License, Version 1.0. (See accompanying
 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
 
-#include <boost/leaf/capture.hpp>
-#include <boost/leaf/result.hpp>
-#include <boost/leaf/handle_errors.hpp>
+#include <boost/leaf/config.hpp>
+
+#if !BOOST_LEAF_CFG_CAPTURE
+
+#include <iostream>
+
+int main()
+{
+    std::cout << "Unit test not applicable." << std::endl;
+    return 0;
+}
+
+#else
+
+#ifdef BOOST_LEAF_TEST_SINGLE_HEADER
+#   include "leaf.hpp"
+#else
+#   include <boost/leaf/capture.hpp>
+#   include <boost/leaf/result.hpp>
+#   include <boost/leaf/handle_errors.hpp>
+#endif
+
 #include "lightweight_test.hpp"
 
 namespace leaf = boost::leaf;
@@ -64,3 +83,5 @@ int main()
 
     return boost::report_errors();
 }
+
+#endif