Make ctypes unit tests work on OS/2. b=522118, r=dwitte

This commit is contained in:
Walter Meinl 2010-01-05 13:30:26 -08:00
parent 4b054ecdc7
commit 9dac919362
2 changed files with 4 additions and 1 deletions

View File

@ -45,6 +45,7 @@ include $(DEPTH)/config/autoconf.mk
MODULE = jsctypes-test
LIBRARY_NAME = jsctypes-test
SHORT_LIBNAME = jscttest
FORCE_SHARED_LIB = 1
NO_DIST_INSTALL = 1

View File

@ -335,8 +335,10 @@ function run_load_system_library()
var syslib = ctypes.open("libm.dylib");
#elifdef XP_UNIX
var syslib = ctypes.open("libm.so");
#elifdef XP_OS2
var syslib = ctypes.open("libc063.dll");
#else
// nothing run this test
do_throw("please add a system library for this test")
#endif
syslib.close();
return true;