mirror of
				https://github.com/isar/libmdbx.git
				synced 2025-11-04 05:08:57 +08:00 
			
		
		
		
	mdbx-testing: добавление extra/probe.c++ просто для проверки компилируемости.
				
					
				
			This commit is contained in:
		@@ -168,7 +168,9 @@ set(LIBMDBX_TEST_SOURCES
 | 
				
			|||||||
    nested.c++
 | 
					    nested.c++
 | 
				
			||||||
    fork.c++)
 | 
					    fork.c++)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if(NOT MDBX_BUILD_CXX)
 | 
					if(MDBX_BUILD_CXX)
 | 
				
			||||||
 | 
					  add_extra_test(probe DISABLED)
 | 
				
			||||||
 | 
					else()
 | 
				
			||||||
  probe_libcxx_filesystem()
 | 
					  probe_libcxx_filesystem()
 | 
				
			||||||
  list(APPEND LIBMDBX_TEST_SOURCES "${MDBX_SOURCE_DIR}/mdbx.c++" ../mdbx.h++)
 | 
					  list(APPEND LIBMDBX_TEST_SOURCES "${MDBX_SOURCE_DIR}/mdbx.c++" ../mdbx.h++)
 | 
				
			||||||
endif()
 | 
					endif()
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -7,7 +7,7 @@
 | 
				
			|||||||
int main(int argc, const char *argv[]) {
 | 
					int main(int argc, const char *argv[]) {
 | 
				
			||||||
  (void)argc;
 | 
					  (void)argc;
 | 
				
			||||||
  (void)argv;
 | 
					  (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;
 | 
					  return EXIT_SUCCESS;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										11
									
								
								test/extra/probe.c++
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								test/extra/probe.c++
									
									
									
									
									
										Normal 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;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
		Reference in New Issue
	
	Block a user