[pypy-svn] r49241 - pypy/dist/pypy/translator/tool/test

arigo at codespeak.net arigo at codespeak.net
Sat Dec 1 11:42:42 CET 2007


Author: arigo
Date: Sat Dec  1 11:42:42 2007
New Revision: 49241

Modified:
   pypy/dist/pypy/translator/tool/test/test_cbuild.py
Log:
This doesn't make much sense any more.


Modified: pypy/dist/pypy/translator/tool/test/test_cbuild.py
==============================================================================
--- pypy/dist/pypy/translator/tool/test/test_cbuild.py	(original)
+++ pypy/dist/pypy/translator/tool/test/test_cbuild.py	Sat Dec  1 11:42:42 2007
@@ -20,26 +20,6 @@
     testexec = build_executable([t], eci)
     out = py.process.cmdexec(testexec)
     assert out.startswith('hello world')
-    
-def test_compile_threads():
-    if sys.platform == 'nt':
-        py.test.skip("Linux-specific test")
-    try:
-        import ctypes
-    except ImportError:
-        py.test.skip("Need ctypes for that test")
-    from pypy.tool.autopath import pypydir
-    pypydir = py.path.local(pypydir)
-    csourcedir = pypydir.join('translator', 'c', 'src')
-    include_dirs = [str(csourcedir.dirpath())]
-    files = [csourcedir.join('thread.c')]
-    eci = ExternalCompilationInfo(
-        include_dirs=include_dirs,
-        libraries=['pthread']
-    )
-    mod = compile_c_module(files, '_thread', eci)
-    cdll = ctypes.CDLL(mod)
-    assert hasattr(cdll, 'RPyThreadLockInit')
 
 class TestEci:
     def setup_class(cls):



More information about the Pypy-commit mailing list