Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d6a8487

Browse filesBrowse files
u-235tordex
authored andcommitted
Add specifying a working directory for tests
Currently, tests only work when run from the ${litehtml_root}/build directory. This commit makes it possible to build and run tests in an arbitrary directory. In particular, this avoids errors when building litebrowser-linux with the `-DLITEHTML_BUILD_TESTING:BOOL=ON` switch.
1 parent af4db4f commit d6a8487
Copy full SHA for d6a8487

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎CMakeLists.txt

Copy file name to clipboardExpand all lines: CMakeLists.txt
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,5 +247,5 @@ if (LITEHTML_BUILD_TESTING)
247247
)
248248

249249
include(GoogleTest)
250-
gtest_discover_tests(${TEST_NAME})
250+
gtest_discover_tests(${TEST_NAME} WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/test)
251251
endif()

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.