Author: Armin Rigo <[email protected]>
Branch: static-callback-embedding
Changeset: r2509:3d91e4c3fc69
Date: 2016-01-01 12:13 +0100
http://bitbucket.org/cffi/cffi/changeset/3d91e4c3fc69/

Log:    An apparently different way of failing

diff --git a/testing/embedding/test_thread.py b/testing/embedding/test_thread.py
--- a/testing/embedding/test_thread.py
+++ b/testing/embedding/test_thread.py
@@ -18,3 +18,11 @@
         self.compile('thread2-test', ['_add1_cffi', '_add2_cffi'], 
['-pthread'])
         output = self.execute('thread2-test')
         assert output == XXX
+
+    def test_next_issue(self):
+        self.prepare_module('add1')
+        self.prepare_module('add2')
+        self.compile('thread2-test', ['_add1_cffi', '_add2_cffi'],
+                     ['-pthread', '-DT2TEST_AGAIN_ADD1'])
+        output = self.execute('thread2-test')
+        assert output == XXX
diff --git a/testing/embedding/thread2-test.c b/testing/embedding/thread2-test.c
--- a/testing/embedding/thread2-test.c
+++ b/testing/embedding/thread2-test.c
@@ -24,6 +24,9 @@
 static void *start_routine_2(void *arg)
 {
     int x, status;
+#ifdef T2TEST_AGAIN_ADD1
+    add1(-1, -1);
+#endif
     x = add2(1000, 200, 30);
     assert(x == 1230);
 
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to