Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable some tests for a issue of clang on OpenBSD #3297

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 20 additions & 2 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,30 @@ add_fmt_test(chrono-test)
add_fmt_test(color-test)
add_fmt_test(core-test)
add_fmt_test(gtest-extra-test)
add_fmt_test(format-test mock-allocator.h)

# Workaround of https://github.com/llvm/llvm-project/issues/56694
# Remove this when the issue is solved!
if(${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD"
AND ${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang")
message(WARNING "Skipping format-test due to a issue of clang on OpenBSD: "
"https://github.com/llvm/llvm-project/issues/56694")
else()
add_fmt_test(format-test mock-allocator.h)
endif()

if (MSVC)
target_compile_options(format-test PRIVATE /bigobj)
endif ()
if (NOT (MSVC AND BUILD_SHARED_LIBS))
add_fmt_test(format-impl-test HEADER_ONLY header-only-test.cc)
# Workaround of https://github.com/llvm/llvm-project/issues/56694
# Remove this when the issue is solved!
if(${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD"
AND ${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang")
message(WARNING "Skipping format-impl-test due to a issue of clang on OpenBSD: "
"https://github.com/llvm/llvm-project/issues/56694")
else()
add_fmt_test(format-impl-test HEADER_ONLY header-only-test.cc)
endif()
endif ()
add_fmt_test(ostream-test)
add_fmt_test(compile-test)
Expand Down