diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2022-05-11 05:06:07 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2022-05-11 05:06:07 +0000 |
commit | ee6e9789420f9e81a34a3df7afcaf3bd7ac0c7d1 (patch) | |
tree | 64f8c90740adbe25c30379d6567fd2acafcbd2dd /testing/embedding/test_thread.py | |
parent | cfef9f25f39bdaf362b7cbccc51720e3a0ed3d35 (diff) | |
parent | 046d35db06dec26c759b92b7d8de38a979d84c0b (diff) | |
download | cffi-ee6e9789420f9e81a34a3df7afcaf3bd7ac0c7d1.tar.gz |
Snap for 8570526 from 046d35db06dec26c759b92b7d8de38a979d84c0b to mainline-media-swcodec-releaseaml_swc_331911000aml_swc_331712000aml_swc_331612000aml_swc_331511000aml_swc_331410000aml_swc_331318000aml_swc_331116000aml_swc_331012020android13-mainline-media-swcodec-release
Change-Id: I25ab4fac7810181b81cdda451d2aa7121266db70
Diffstat (limited to 'testing/embedding/test_thread.py')
-rw-r--r-- | testing/embedding/test_thread.py | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/testing/embedding/test_thread.py b/testing/embedding/test_thread.py index 1895076..9a5936d 100644 --- a/testing/embedding/test_thread.py +++ b/testing/embedding/test_thread.py @@ -21,17 +21,21 @@ class TestThread(EmbeddingTests): add1_cffi = self.prepare_module('add1') add2_cffi = self.prepare_module('add2') self.compile('thread2-test', [add1_cffi, add2_cffi], threads=True) - output = self.execute('thread2-test') - output = self._take_out(output, "preparing") - output = self._take_out(output, ".") - output = self._take_out(output, ".") - # at least the 3rd dot should be after everything from ADD2 - assert output == ("starting\n" - "prepADD2\n" - "adding 1000 and 200 and 30\n" - ".\n" - "adding 40 and 2\n" - "done\n") + for i in range(3): + output = self.execute('thread2-test') + print('='*79) + print(output) + print('='*79) + output = self._take_out(output, "preparing") + output = self._take_out(output, ".") + output = self._take_out(output, ".") + # at least the 3rd dot should be after everything from ADD2 + assert output == ("starting\n" + "prepADD2\n" + "adding 1000 and 200 and 30\n" + ".\n" + "adding 40 and 2\n" + "done\n") def test_alt_issue(self): add1_cffi = self.prepare_module('add1') |