diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-09-07 23:48:21 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-09-07 23:51:19 +0300 |
commit | 4764362ebb9184eef03a3e7d77234ed973f9c43f (patch) | |
tree | 12ccd03c3a338d3991033726b620a6e52dec0350 /build_files/cmake | |
parent | fd05f01be60128e70b7e53d566627c9e84b6a98d (diff) |
Fix GTests failing on Windows buildbot
Run these tests from the install directory so they can find dlls.
Diffstat (limited to 'build_files/cmake')
-rw-r--r-- | build_files/cmake/Modules/GTestTesting.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/build_files/cmake/Modules/GTestTesting.cmake b/build_files/cmake/Modules/GTestTesting.cmake index 091220bb0e4..1c98a6456b8 100644 --- a/build_files/cmake/Modules/GTestTesting.cmake +++ b/build_files/cmake/Modules/GTestTesting.cmake @@ -53,7 +53,7 @@ macro(BLENDER_SRC_GTEST_EX NAME SRC EXTRA_LIBS DO_ADD_TEST) RUNTIME_OUTPUT_DIRECTORY_RELEASE "${TESTS_OUTPUT_DIR}" RUNTIME_OUTPUT_DIRECTORY_DEBUG "${TESTS_OUTPUT_DIR}") if(${DO_ADD_TEST}) - add_test(NAME ${TARGET_NAME} COMMAND ${TESTS_OUTPUT_DIR}/${TARGET_NAME} WORKING_DIRECTORY $<TARGET_FILE_DIR:blender>) + add_test(NAME ${TARGET_NAME} COMMAND ${TESTS_OUTPUT_DIR}/${TARGET_NAME} WORKING_DIRECTORY ${TEST_INSTALL_DIR}) # Don't fail tests on leaks since these often happen in external libraries # that we can't fix. |