]> git.ipfire.org Git - thirdparty/strongswan.git/commit
unit-tests: Fix cancel_onoff test
authorTobias Brunner <tobias@strongswan.org>
Mon, 20 Jul 2020 09:45:54 +0000 (11:45 +0200)
committerTobias Brunner <tobias@strongswan.org>
Mon, 20 Jul 2020 13:49:44 +0000 (15:49 +0200)
commitedc7752802fe5f0983621746968867afff98b1b3
tree27781ea7d3db7d35a3386fe5362ac21383c5a359
parent8a4e30ccefb770a7469db7ec5972f73f89045d3f
unit-tests: Fix cancel_onoff test

If it takes a while to start one of the threads, another thread might already
have passed the usleep() call previously used and re-enabled cancelability
so that the loop that checked for it would never terminate.
src/libstrongswan/tests/suites/test_threading.c