Skip to content

Commit

Permalink
Updated test to run only in Mac OS X
Browse files Browse the repository at this point in the history
  • Loading branch information
pvicente committed Feb 21, 2018
1 parent 4ed3c9c commit a8c1e6d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions conans/test/util/detect_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,12 @@ def detect_default_compilers_test(self):

def detect_default_in_mac_os_using_gcc_as_default_test(self):
"""
In some Mac OS X gcc is in reality clang.
Test if gcc in Mac OS X is using apple-clang as frontend
"""
# See: https://github.com/conan-io/conan/issues/2231
if platform.system() != "Darwin":
return

def _execute(command):
proc = Popen(command, shell=True, bufsize=1, stdout=PIPE, stderr=STDOUT)

Expand All @@ -44,7 +47,7 @@ def _execute(command):

proc_return, output = _execute("gcc --version")
if proc_return != 0 or "clang" not in output:
# Not test scenario (gcc should display that it's clang)
# Not test scenario (gcc should display clang in output
return

output = TestBufferConanOutput()
Expand Down

0 comments on commit a8c1e6d

Please sign in to comment.