[pypy-commit] pypy default: marked two tests as xfail on s390x. they time out when invoked with test runner, but pass when run directly

plan_rich pypy.commits at gmail.com
Mon Mar 14 03:53:53 EDT 2016


Author: Richard Plangger <planrichi at gmail.com>
Branch: 
Changeset: r83025:4b386bcfee54
Date: 2016-03-14 08:49 +0100
http://bitbucket.org/pypy/pypy/changeset/4b386bcfee54/

Log:	marked two tests as xfail on s390x. they time out when invoked with
	test runner, but pass when run directly

diff --git a/pypy/module/thread/test/test_lock.py b/pypy/module/thread/test/test_lock.py
--- a/pypy/module/thread/test/test_lock.py
+++ b/pypy/module/thread/test/test_lock.py
@@ -3,6 +3,7 @@
 import sys, os
 from pypy.module.thread.test.support import GenericTestThread
 from rpython.translator.c.test.test_genc import compile
+import platform
 
 
 class AppTestLock(GenericTestThread):
@@ -63,6 +64,8 @@
         else:
             assert self.runappdirect, "missing lock._py3k_acquire()"
 
+    @py.test.mark.xfail(platform.machine() == 's390x',
+                        reason='may fail this test under heavy load')
     def test_ping_pong(self):
         # The purpose of this test is that doing a large number of ping-pongs
         # between two threads, using locks, should complete in a reasonable
diff --git a/rpython/rlib/test/test_rthread.py b/rpython/rlib/test/test_rthread.py
--- a/rpython/rlib/test/test_rthread.py
+++ b/rpython/rlib/test/test_rthread.py
@@ -5,6 +5,7 @@
 from rpython.translator.c.test.test_boehm import AbstractGCTestClass
 from rpython.rtyper.lltypesystem import lltype, rffi
 import py
+import platform
 
 def test_lock():
     l = allocate_lock()
@@ -92,6 +93,8 @@
         res = fn()
         assert res == 42
 
+    @py.test.mark.xfail(platform.machine() == 's390x',
+                        reason='may fail this test under heavy load')
     def test_gc_locking(self):
         import time
         from rpython.rlib.debug import ll_assert


More information about the pypy-commit mailing list