Merge pull request #24 from r-burns/darwin

Fix test_read_cmake_files on macOS
This commit is contained in:
Regen
2020-07-29 12:42:32 +09:00
committed by GitHub
2 changed files with 3 additions and 1 deletions

View File

@@ -1,6 +1,6 @@
name: Tests
on: [push]
on: [push, pull_request]
jobs:
build:

View File

@@ -41,6 +41,8 @@ def test_read_cmake_files(cmake_build):
assert 'GNU' in api.get_variable_doc('CMAKE_CXX_COMPILER_ID')
elif system == 'Windows':
assert 'MSVC' in api.get_variable_doc('CMAKE_CXX_COMPILER_ID')
elif system == 'Darwin':
assert 'Clang' in api.get_variable_doc('CMAKE_CXX_COMPILER_ID')
else:
raise RuntimeError('Unexpected system')