Author: fijal
Branch: nogil-unsafe-2
Changeset: r91858:d160e8df8534
Date: 2017-07-11 15:06 +0200
http://bitbucket.org/pypy/pypy/changeset/d160e8df8534/

Log:    make the test crash

diff --git a/rpython/translator/c/test/test_standalone.py 
b/rpython/translator/c/test/test_standalone.py
--- a/rpython/translator/c/test/test_standalone.py
+++ b/rpython/translator/c/test/test_standalone.py
@@ -1270,6 +1270,7 @@
                 self._lock.acquire()
                 self.l.append(item)
                 self._lock.release()
+            append._dont_inline_ = True
 
             def get_counter(self):
                 self._lock.acquire()
@@ -1286,7 +1287,9 @@
 
         def bootstrap():
             rthread.gc_thread_start()
-            state.append(Node(state.get_counter()))
+            x = Node(state.get_counter())
+            state.append(x)
+            state.append(x)
             rthread.gc_thread_die()
 
         def new_thread():
@@ -1315,7 +1318,7 @@
             data = cbuilder.cmdexec('')
             r = data.splitlines()
             r.sort()
-            assert r == ['0', '1', '2', '3', '4', 'ok']
+            assert r == ['0', '0', '1', '1', '2', '2', '3', '3', '4', '4', 
'ok']
 
         assert SUPPORT__THREAD
         runme(no__thread=False)
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to