tests: fix bihash unit test threads count 36/35936/4
authorJing Peng <pj.hades@gmail.com>
Mon, 11 Apr 2022 20:36:28 +0000 (16:36 -0400)
committerDamjan Marion <dmarion@me.com>
Tue, 12 Apr 2022 08:05:43 +0000 (08:05 +0000)
commit679c0de84e01aeb096efd1c6d27155587360a877
treed6a8c7c6db852fd25aba5758ef2b6cb0741abb73
parent98859a41a4bbf3277da1e368b566916f5e39c982
tests: fix bihash unit test threads count

In test_bihash_threads, if a test thread fails to be created,
it is still counted towards the total thread count, which could
lead to never-ending test loop. This patch fixes the issue.

Type: fix

Signed-off-by: Jing Peng <pj.hades@gmail.com>
Change-Id: Ic0f1d4dde9c5ea672b52f0e2e49f16d42f982b77
src/plugins/unittest/bihash_test.c