diff options
| author | Armin Rigo <arigo@tunes.org> | 2016-01-01 12:13:13 +0100 |
|---|---|---|
| committer | Armin Rigo <arigo@tunes.org> | 2016-01-01 12:13:13 +0100 |
| commit | 53ac81fad3baa97fd7610c1b524ebed6f8dab3d8 (patch) | |
| tree | 0c18fe867348aa8c2eba8788eaf0d0f6e6cf8753 /testing | |
| parent | 1dc3e9fadf1567cd8660ac2ada912e5c77c3006f (diff) | |
| download | cffi-53ac81fad3baa97fd7610c1b524ebed6f8dab3d8.tar.gz | |
An apparently different way of failing
Diffstat (limited to 'testing')
| -rw-r--r-- | testing/embedding/test_thread.py | 8 | ||||
| -rw-r--r-- | testing/embedding/thread2-test.c | 3 |
2 files changed, 11 insertions, 0 deletions
diff --git a/testing/embedding/test_thread.py b/testing/embedding/test_thread.py index b23cefb..5fa7a39 100644 --- a/testing/embedding/test_thread.py +++ b/testing/embedding/test_thread.py @@ -18,3 +18,11 @@ class TestThread(EmbeddingTests): 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 index 95dd6a4..597ad1e 100644 --- a/testing/embedding/thread2-test.c +++ b/testing/embedding/thread2-test.c @@ -24,6 +24,9 @@ static void *start_routine_1(void *arg) 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); |
