All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] testsuite/smokey: y2038: Fix evaluation of pthread_join result
@ 2021-08-09  7:15 Jan Kiszka
  2021-08-09  7:52 ` Bezdeka, Florian
  0 siblings, 1 reply; 3+ messages in thread
From: Jan Kiszka @ 2021-08-09  7:15 UTC (permalink / raw)
  To: Xenomai

From: Jan Kiszka <jan.kiszka@siemens.com>

The status value is the pointer, not where the pointer points to.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---

Not yet resolving the unexpected assertion, though.

 testsuite/smokey/y2038/syscall-tests.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/testsuite/smokey/y2038/syscall-tests.c b/testsuite/smokey/y2038/syscall-tests.c
index 90bfe28d48..afbe8d42a6 100644
--- a/testsuite/smokey/y2038/syscall-tests.c
+++ b/testsuite/smokey/y2038/syscall-tests.c
@@ -150,7 +150,7 @@ static int run_thread(void *(*thread)(void *), void *arg, int exp_result)
 	if (!__T(ret, pthread_join(tid, &status)))
 		return ret;
 
-	res = *((long *) status);
+	res = (long)status;
 
 	return (res == exp_result) ? 0 : ret;
 }
-- 
2.31.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-08-09 11:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-09  7:15 [PATCH] testsuite/smokey: y2038: Fix evaluation of pthread_join result Jan Kiszka
2021-08-09  7:52 ` Bezdeka, Florian
2021-08-09 11:48   ` Jan Kiszka

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.