mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-29 20:14:01 +00:00
[AIX]test failure fix using gtest-1.15.0 for AIX (#21497)
### Description Local CI setup for AIX reported tests failure after the gtest 1.15.0 upgrade. ### Motivation and Context Below tests failure is observed after gtest upgrade. The following tests FAILED: 1 - onnxruntime_test_all (ILLEGAL) 7 - onnxruntime_logging_apis_test (Subprocess aborted) To fix this, I am enabling pthread support under gtest. This was disabled with previous version of gtest for some reason. Now by enabling this, above tests are getting passed with gtest 1.15.0.
This commit is contained in:
parent
48fb8a7e56
commit
82b2955268
1 changed files with 0 additions and 3 deletions
|
|
@ -46,9 +46,6 @@ if (onnxruntime_BUILD_UNIT_TESTS)
|
|||
if (CMAKE_SYSTEM_NAME STREQUAL "Emscripten")
|
||||
set(gtest_disable_pthreads ON)
|
||||
endif()
|
||||
if (${CMAKE_SYSTEM_NAME} MATCHES "AIX")
|
||||
set(gtest_disable_pthreads ON CACHE BOOL "gtest_disable_pthreads" FORCE)
|
||||
endif()
|
||||
set(INSTALL_GTEST OFF CACHE BOOL "" FORCE)
|
||||
if (IOS OR ANDROID)
|
||||
# on mobile platforms the absl flags class dumps the flag names (assumably for binary size), which breaks passing
|
||||
|
|
|
|||
Loading…
Reference in a new issue