* [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
* Re: [PATCH] testsuite/smokey: y2038: Fix evaluation of pthread_join result
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
0 siblings, 1 reply; 3+ messages in thread
From: Bezdeka, Florian @ 2021-08-09 7:52 UTC (permalink / raw)
To: xenomai, jan.kiszka
On Mon, 2021-08-09 at 09:15 +0200, Jan Kiszka wrote:
> 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;
Had a look again. That's correct. Do you want me to integrate it into
the patch that introduced it?
Thanks for fixing this up.
>
> return (res == exp_result) ? 0 : ret;
> }
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] testsuite/smokey: y2038: Fix evaluation of pthread_join result
2021-08-09 7:52 ` Bezdeka, Florian
@ 2021-08-09 11:48 ` Jan Kiszka
0 siblings, 0 replies; 3+ messages in thread
From: Jan Kiszka @ 2021-08-09 11:48 UTC (permalink / raw)
To: Bezdeka, Florian (T RDA IOT SES-DE), xenomai
On 09.08.21 09:52, Bezdeka, Florian (T RDA IOT SES-DE) wrote:
> On Mon, 2021-08-09 at 09:15 +0200, Jan Kiszka wrote:
>> 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;
>
> Had a look again. That's correct. Do you want me to integrate it into
> the patch that introduced it?
>
> Thanks for fixing this up.
Ah, it's not yet in master - I'll fold this in, need to rebase anyway.
Jan
--
Siemens AG, T RDA IOT
Corporate Competence Center Embedded Linux
^ permalink raw reply [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.