[Python-checkins] r70592 - in python/branches/multiprocessing-autoconf: Lib/test/test_multiprocessing.py configure configure.in
christian.heimes
python-checkins at python.org
Wed Mar 25 02:21:17 CET 2009
Author: christian.heimes
Date: Wed Mar 25 02:21:17 2009
New Revision: 70592
Log:
Added more debugging code to see why the tests aren't working on *BSD
Modified:
python/branches/multiprocessing-autoconf/Lib/test/test_multiprocessing.py
python/branches/multiprocessing-autoconf/configure
python/branches/multiprocessing-autoconf/configure.in
Modified: python/branches/multiprocessing-autoconf/Lib/test/test_multiprocessing.py
==============================================================================
--- python/branches/multiprocessing-autoconf/Lib/test/test_multiprocessing.py (original)
+++ python/branches/multiprocessing-autoconf/Lib/test/test_multiprocessing.py Wed Mar 25 02:21:17 2009
@@ -1801,7 +1801,7 @@
multiprocessing.connection.answer_challenge,
_FakeConnection(), b'abc')
- def test_macros(self):
+ def test_000macros(self):
platform = sys.platform
if platform == "win32":
macros = dict(
@@ -1881,10 +1881,10 @@
ManagerMixin.pool = ManagerMixin.manager.Pool(4)
testcases = (
+ testcases_other +
sorted(testcases_processes.values(), key=lambda tc:tc.__name__) +
sorted(testcases_threads.values(), key=lambda tc:tc.__name__) +
sorted(testcases_manager.values(), key=lambda tc:tc.__name__) +
- testcases_other
)
loadTestsFromTestCase = unittest.defaultTestLoader.loadTestsFromTestCase
Modified: python/branches/multiprocessing-autoconf/configure
==============================================================================
--- python/branches/multiprocessing-autoconf/configure (original)
+++ python/branches/multiprocessing-autoconf/configure Wed Mar 25 02:21:17 2009
@@ -25384,6 +25384,8 @@
#define HAVE_SEM_TIMEDWAIT 0
_ACEOF
+ { echo "$as_me:$LINENO: disable sem_open and sem_timedwait on *BSD" >&5
+echo "$as_me: disable sem_open and sem_timedwait on *BSD" >&6;}
;;
esac
@@ -25393,12 +25395,16 @@
#define HAVE_BROKEN_SEM_UNLINK 1
_ACEOF
+ { echo "$as_me:$LINENO: Cygwin has broken sem_unlink" >&5
+echo "$as_me: Cygwin has broken sem_unlink" >&6;}
;;
Darwin*)
cat >>confdefs.h <<\_ACEOF
#define HAVE_BROKEN_SEM_GETVALUE 1
_ACEOF
+ { echo "$as_me:$LINENO: Darwin has broken sem_getvalue" >&5
+echo "$as_me: Darwin has broken sem_getvalue" >&6;}
;;
esac
Modified: python/branches/multiprocessing-autoconf/configure.in
==============================================================================
--- python/branches/multiprocessing-autoconf/configure.in (original)
+++ python/branches/multiprocessing-autoconf/configure.in Wed Mar 25 02:21:17 2009
@@ -3805,16 +3805,19 @@
# FreeBSD's P1003.1b semaphore support is very experimental
# and has many known problems. (as of June 2008)
AC_DEFINE(HAVE_SEM_OPEN, 0)
- AC_DEFINE(HAVE_SEM_TIMEDWAIT, 0)
+ AC_DEFINE(HAVE_SEM_TIMEDWAIT, 0)
+ AC_MSG_NOTICE([disable sem_open and sem_timedwait on *BSD])
;;
esac
case $ac_sys_system in
CYGWIN*)
AC_DEFINE(HAVE_BROKEN_SEM_UNLINK, 1)
+ AC_MSG_NOTICE([Cygwin has broken sem_unlink])
;;
Darwin*)
AC_DEFINE(HAVE_BROKEN_SEM_GETVALUE, 1)
+ AC_MSG_NOTICE([Darwin has broken sem_getvalue])
;;
esac
More information about the Python-checkins
mailing list