From b6a851b3d651d4b57d2ffe1ed69d1030fbd10709 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9B=D0=B5=D0=BE=D0=BD=D0=B8=D0=B4=20=D0=AE=D1=80=D1=8C?= =?UTF-8?q?=D0=B5=D0=B2=20=28Leonid=20Yuriev=29?= Date: Fri, 22 Nov 2024 13:25:55 +0300 Subject: [PATCH] =?UTF-8?q?mdbx-testing:=20=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2?= =?UTF-8?q?=D0=BB=D0=B5=D0=BD=D0=B8=D0=B5=20`extra/probe.c++`=20=D0=BF?= =?UTF-8?q?=D1=80=D0=BE=D1=81=D1=82=D0=BE=20=D0=B4=D0=BB=D1=8F=20=D0=BF?= =?UTF-8?q?=D1=80=D0=BE=D0=B2=D0=B5=D1=80=D0=BA=D0=B8=20=D0=BA=D0=BE=D0=BC?= =?UTF-8?q?=D0=BF=D0=B8=D0=BB=D0=B8=D1=80=D1=83=D0=B5=D0=BC=D0=BE=D1=81?= =?UTF-8?q?=D1=82=D0=B8.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/CMakeLists.txt | 4 +++- test/extra/open.c++ | 2 +- test/extra/probe.c++ | 11 +++++++++++ 3 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 test/extra/probe.c++ 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; +}