Commit 4c5aed25 authored by Florian Bezdeka's avatar Florian Bezdeka Committed by Jan Kiszka
Browse files

y2038: testsuite/smokey/y2038: Add a missing error handling path



Initialization of the mutex used for mutex_timedlock64 tests could fail.
We have to abort the test in this case.
Signed-off-by: default avatarFlorian Bezdeka <florian.bezdeka@siemens.com>
Signed-off-by: Jan Kiszka's avatarJan Kiszka <jan.kiszka@siemens.com>
parent e956287b
......@@ -489,7 +489,8 @@ static int test_sc_cobalt_mutex_timedlock64(void)
struct xn_timespec64 ts64;
struct thread_context ctx = {0};
ret = pthread_mutex_init(&mutex, NULL);
if (!__T(ret, pthread_mutex_init(&mutex, NULL)))
return ret;
/* Make sure we don't crash because of NULL pointers */
ret = XENOMAI_SYSCALL2(sc_nr, NULL, NULL);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment