selftests: nci: Correct pthread_create return value check

The pthread_create() functions returns 0 on success and a positive value on
failure. Modify the return value check to correctly detect failure cases.

Fixes: 72696bd8a0 ("selftests: nci: Extract the start/stop discovery function")
Signed-off-by: Lei Zhu <zhulei@kylinos.cn>
Link: https://patch.msgid.link/20260729072426.303484-1-zhulei_szu@163.com
Signed-off-by: David Heidelberg <david@ixit.cz>
This commit is contained in:
Lei Zhu 2026-07-29 15:24:26 +08:00 • committed by David Heidelberg
commit 3d8afc5243
No known key found for this signature in database
GPG key ID: 60023FC4D3492072