From 4e814b7d53df4954825f8ea0079ece557ad42fad Mon Sep 17 00:00:00 2001 From: Siu Kwan Lam Date: Mon, 11 Nov 2013 12:20:43 -0600 Subject: [PATCH] skip test for building executable from native object and assembly on OSX --- llvm/tests/test_native.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/llvm/tests/test_native.py b/llvm/tests/test_native.py index 63eab5a..04dde76 100644 --- a/llvm/tests/test_native.py +++ b/llvm/tests/test_native.py @@ -6,8 +6,9 @@ import subprocess import tempfile from distutils.spawn import find_executable from llvm.core import (Module, Type, Builder, Constant) -from .support import TestCase, IS_PY3K, tests +from .support import TestCase, IS_PY3K, tests, skip_if +@skip_if(sys.platform in ('win32', 'darwin')) class TestNative(TestCase): def setUp(self): @@ -60,10 +61,10 @@ class TestNative(TestCase): self._compile(src) def test_object(self): - # if sys.platform == 'darwin': - # # skip this test on MacOSX for now - # return - + ''' + Note: Older Darwin with GCC will report missing _main symbol when + compile the object file to an executable. + ''' m = self._make_module() output = m.to_native_object() @@ -73,8 +74,7 @@ class TestNative(TestCase): self._compile(src) -if sys.platform != 'win32': - tests.append(TestNative) +tests.append(TestNative) if __name__ == '__main__': unittest.main()