mdbx-testing: добавление extra/probe.c++ просто для проверки компилируемости.

This commit is contained in:
Леонид Юрьев (Leonid Yuriev) 2024-11-22 13:25:55 +03:00
parent 8369b8ff64
commit b6a851b3d6
3 changed files with 15 additions and 2 deletions

View File

@ -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()

View File

@ -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;
}

11
test/extra/probe.c++ Normal file
View File

@ -0,0 +1,11 @@
#include <iostream>
#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;
}