diff options
author | Michal Gorny <mgorny@gentoo.org> | 2018-10-11 20:26:55 +0000 |
---|---|---|
committer | Michal Gorny <mgorny@gentoo.org> | 2018-10-11 20:26:55 +0000 |
commit | d50a4310dcee6523dd68144d02924d9753593cbf (patch) | |
tree | bda8a892a9e562e8bc2c6f585f7e7f406cceabc1 /clang/bindings | |
parent | f04bed8e7962174b493ada683e272cd9eb0e8290 (diff) |
[python] [tests] Fix calling tests on Windows
Fix passing arguments to the Python test command to use 'env' builtin
CMake command, in order to fix compatibility with Windows.
Differential Revision: https://reviews.llvm.org/D53151
llvm-svn: 344288
Diffstat (limited to 'clang/bindings')
-rw-r--r-- | clang/bindings/python/tests/CMakeLists.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/bindings/python/tests/CMakeLists.txt b/clang/bindings/python/tests/CMakeLists.txt index b40684f55b0e..97cd9ba8b6ea 100644 --- a/clang/bindings/python/tests/CMakeLists.txt +++ b/clang/bindings/python/tests/CMakeLists.txt @@ -1,7 +1,9 @@ # Test target to run Python test suite from main build. add_custom_target(check-clang-python - COMMAND CLANG_LIBRARY_PATH=$<TARGET_FILE_DIR:libclang> ${PYTHON_EXECUTABLE} -m unittest discover + COMMAND ${CMAKE_COMMAND} -E env + CLANG_LIBRARY_PATH=$<TARGET_FILE_DIR:libclang> + ${PYTHON_EXECUTABLE} -m unittest discover DEPENDS libclang WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/..) |