Change VERIFY() into VERIFY3U() when creating threads in ztest, so that we can see the return code when it fails.
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
This commit is contained in:
parent
a13cdecdd2
commit
51760e3c7e
|
@ -182,8 +182,8 @@ zk_thread_create(caddr_t stk, size_t stksize, thread_func_t func, void *arg,
|
|||
list_insert_head(&kthread_list, kt);
|
||||
VERIFY3S(pthread_mutex_unlock(&kthread_lock), ==, 0);
|
||||
|
||||
VERIFY(pthread_create(&kt->t_tid, &kt->t_attr,
|
||||
(void *(*)(void *))func, arg) == 0);
|
||||
VERIFY3U(pthread_create(&kt->t_tid, &kt->t_attr,
|
||||
(void *(*)(void *))func, arg), ==, 0);
|
||||
|
||||
return kt;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue