diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 6ec8219a..7e884c55 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -168,7 +168,9 @@ set(LIBMDBX_TEST_SOURCES nested.c++ fork.c++) -if(NOT MDBX_BUILD_CXX) +if(MDBX_BUILD_CXX) + add_extra_test(probe DISABLED) +else() probe_libcxx_filesystem() list(APPEND LIBMDBX_TEST_SOURCES "${MDBX_SOURCE_DIR}/mdbx.c++" ../mdbx.h++) endif() diff --git a/test/extra/open.c++ b/test/extra/open.c++ index d475182c..bc955c83 100644 --- a/test/extra/open.c++ +++ b/test/extra/open.c++ @@ -7,7 +7,7 @@ int main(int argc, const char *argv[]) { (void)argc; (void)argv; - std::cout << "FAKE-OK (since no C++20 std::thread and/or std::latch\n"; + std::cout << "FAKE-OK (since no C++20 std::thread and/or std::latch)\n"; return EXIT_SUCCESS; } diff --git a/test/extra/probe.c++ b/test/extra/probe.c++ new file mode 100644 index 00000000..c80f5f87 --- /dev/null +++ b/test/extra/probe.c++ @@ -0,0 +1,11 @@ +#include + +#include "mdbx.h++" + +int main(int argc, const char *argv[]) { + (void)argc; + (void)argv; + std::cout + << "OK (but this is do-nothing test just for a check for compilation)\n"; + return EXIT_SUCCESS; +}