Skip to content

Commit

Permalink
Fix the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ssrobins committed May 9, 2024
1 parent 92692fb commit 51d7f32
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_smoke.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ def test_propagate_cxx_compiler(self, capfd, basic_cmake_project):
out, err = capfd.readouterr()
assert "The CXX compiler identification is GNU" in out
assert "CMake-Conan: The C compiler is not defined." in err
assert 'tools.build:compiler_executables={"cpp":"/usr/bin/c++"}' in out
assert 'tools.build:compiler_executables={"cpp":"c++"}' in out

@linux
def test_propagate_c_compiler(self, capfd, basic_cmake_project):
Expand All @@ -318,7 +318,7 @@ def test_propagate_c_compiler(self, capfd, basic_cmake_project):
out, err = capfd.readouterr()
assert "The CXX compiler identification is GNU" in out
assert "The C compiler is not defined." not in err
assert 'tools.build:compiler_executables={"c":"/usr/bin/cc","cpp":"/usr/bin/c++"}' in out
assert 'tools.build:compiler_executables={"c":"cc","cpp":"c++"}' in out

@linux
def test_propagate_non_default_compiler(self, capfd, basic_cmake_project):
Expand All @@ -328,7 +328,7 @@ def test_propagate_non_default_compiler(self, capfd, basic_cmake_project):
out, err = capfd.readouterr()
assert "The CXX compiler identification is Clang" in out
assert "The C compiler is not defined." not in err
assert 'tools.build:compiler_executables={"c":"/usr/bin/clang","cpp":"/usr/bin/clang++"}' in out
assert 'tools.build:compiler_executables={"c":"clang","cpp":"clang++"}' in out

@darwin
@pytest.mark.parametrize("cmake_generator", ["Unix Makefiles", "Xcode"])
Expand Down

0 comments on commit 51d7f32

Please sign in to comment.