Update of /cvsroot/ctypes/ctypes/ctypes/test
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29514
Modified Files:
Tag: LoadLibrary_branch
test_posix.py
Log Message:
Try on more platforms.
Index: test_posix.py
===================================================================
RCS file: /cvsroot/ctypes/ctypes/ctypes/test/test_posix.py,v
retrieving revision 1.4.4.3
retrieving revision 1.4.4.4
diff -C2 -d -r1.4.4.3 -r1.4.4.4
*** test_posix.py 13 Apr 2006 09:10:31 -0000 1.4.4.3
--- test_posix.py 13 Apr 2006 09:13:03 -0000 1.4.4.4
***************
*** 2,21 ****
from ctypes import *
! if os.name == "posix" and sys.platform == "linux2":
! # I don't really know on which platforms this works,
! # later it should use the find_library stuff to avoid
! # hardcoding the names.
!
! class TestRTLD_GLOBAL(unittest.TestCase):
! def test_GL(self):
! from ctypes._loader import _findLib
! lib_gl = _findLib("GL")
! print "GL", lib_gl
! if lib_gl:
! CDLL(lib_gl, mode=RTLD_GLOBAL)
! lib_glu = _findLib("GLU")
! print "GLU", lib_glu
! if lib_glu:
! CDLL(lib_glu)
##if os.name == "posix" and sys.platform != "darwin":
--- 2,16 ----
from ctypes import *
! class TestRTLD_GLOBAL(unittest.TestCase):
! def test_GL(self):
! from ctypes._loader import _findLib
! lib_gl = _findLib("GL")
! print "GL", lib_gl
! if lib_gl:
! CDLL(lib_gl, mode=RTLD_GLOBAL)
! lib_glu = _findLib("GLU")
! print "GLU", lib_glu
! if lib_glu:
! CDLL(lib_glu)
##if os.name == "posix" and sys.platform != "darwin":
|