Skip to content
This repository was archived by the owner on Mar 22, 2023. It is now read-only.

Commit 003a6e0

Browse files
tests: run string_view libcxx tests not only on Win
1 parent 91bb3dc commit 003a6e0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/external/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -805,13 +805,13 @@ if (TEST_STRING)
805805
add_test_generic(NAME string_libcxx_string_view_compare_pointer_size TRACERS none pmemcheck memcheck)
806806

807807
# On Windows only run for new MSVC compiler
808-
if(MSVC_VERSION GREATER 1919)
808+
if(NOT WIN32 OR MSVC_VERSION GREATER 1919)
809809
build_test(string_libcxx_string_view_opeq_string_view libcxx/string.view/string.view.comparison/opeq.string_view.string_view.pass.cpp)
810810
add_test_generic(NAME string_libcxx_string_view_opeq_string_view TRACERS none pmemcheck memcheck)
811811

812812
# Due to LNK1179 error (in Windows' Release builds) we want to run these tests
813813
# only with std::string_view (not ours implementation; available in C++17)
814-
if ("${CMAKE_BUILD_TYPE}" STREQUAL "Debug" OR CXX_STANDARD GREATER 14)
814+
if (NOT WIN32 OR "${CMAKE_BUILD_TYPE}" STREQUAL "Debug" OR CXX_STANDARD GREATER 14)
815815
build_test(string_libcxx_string_view_opeq_pointer libcxx/string.view/string.view.comparison/opeq.string_view.pointer.pass.cpp)
816816
add_test_generic(NAME string_libcxx_string_view_opeq_pointer TRACERS none pmemcheck memcheck)
817817

0 commit comments

Comments
 (0)