Fix libtcc_test_mt
commit85b27432bb994e34bd8ba9ebbf608b587ba13dbb
authorherman ten brugge <hermantenbrugge@home.nl>
Sun, 4 Dec 2022 10:55:06 +0000 (4 11:55 +0100)
committerherman ten brugge <hermantenbrugge@home.nl>
Sun, 4 Dec 2022 10:55:06 +0000 (4 11:55 +0100)
treede9ee2a3c157d204a3ad0877b5ef5d9dd8e021f1
parente2db3a5e57a49234fd53b5828cd5cf05f280712a
Fix libtcc_test_mt

The test failed because atexit/on_exit code was not correct.
Make it look more like the g_exit_context.
Added a sleep to libtcc_test_mt to allow overlap of threads to
detect this problem.
tccrun.c
tests/libtcc_test_mt.c