skip test for building executable from native object and assembly on OSX
This commit is contained in:
parent
8a6dd7af7f
commit
4e814b7d53
1 changed files with 7 additions and 7 deletions
|
|
@ -6,8 +6,9 @@ import subprocess
|
||||||
import tempfile
|
import tempfile
|
||||||
from distutils.spawn import find_executable
|
from distutils.spawn import find_executable
|
||||||
from llvm.core import (Module, Type, Builder, Constant)
|
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):
|
class TestNative(TestCase):
|
||||||
|
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
|
|
@ -60,10 +61,10 @@ class TestNative(TestCase):
|
||||||
self._compile(src)
|
self._compile(src)
|
||||||
|
|
||||||
def test_object(self):
|
def test_object(self):
|
||||||
# if sys.platform == 'darwin':
|
'''
|
||||||
# # skip this test on MacOSX for now
|
Note: Older Darwin with GCC will report missing _main symbol when
|
||||||
# return
|
compile the object file to an executable.
|
||||||
|
'''
|
||||||
m = self._make_module()
|
m = self._make_module()
|
||||||
output = m.to_native_object()
|
output = m.to_native_object()
|
||||||
|
|
||||||
|
|
@ -73,8 +74,7 @@ class TestNative(TestCase):
|
||||||
|
|
||||||
self._compile(src)
|
self._compile(src)
|
||||||
|
|
||||||
if sys.platform != 'win32':
|
tests.append(TestNative)
|
||||||
tests.append(TestNative)
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
unittest.main()
|
unittest.main()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue