Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
memsharded committed Mar 27, 2024
1 parent a9648f8 commit 6aa2da3
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":"/usr/bin/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":"/usr/bin/cc","cpp":"/usr/bin/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":"/usr/bin/clang","cpp":"/usr/bin/clang++",}' in out

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

0 comments on commit 6aa2da3

Please sign in to comment.