blob: 6e7c5afaea67ffb3b2f9472a84b1acaa203d8924 [file] [log] [blame] [edit]
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"