You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
362 B
11 lines
362 B
from testing.embedding.test_basic import EmbeddingTests
|
|
|
|
|
|
class TestThreadLocal(EmbeddingTests):
|
|
def test_thread_local(self):
|
|
tlocal_cffi = self.prepare_module('tlocal')
|
|
self.compile('tlocal-test', [tlocal_cffi], threads=True)
|
|
for i in range(10):
|
|
output = self.execute('tlocal-test')
|
|
assert output == "done\n"
|