[PATCH] tst: Add test for utime
Florian Weimer
fweimer@redhat.com
Thu Mar 4 16:22:20 GMT 2021
* Arjun Shankar:
> Hi Lukasz,
>
>> This patch provides test for utime. It uses xfstat() syscall to read
>> access and modification times to compare with ones written by utime.
>>
>> Moreover, access and modification times beyond the Y2038 threshold
>> date (i.e. 32 bit time_t overflow) are also checked.
>
> It seems that this and the utimes/futimens tests fail on machines where
> /tmp is XFS, where they run into a y2038 bug [1].
>
> I am wondering if there's a way around this, like maybe using a loop mount
> inside a container? I don't know if that's possible/easy using the
> container tests infrastructure, but it is the first thing that comes to my
> mind.
If tmpfs is known to work, using /dev/shm instead may be an option.
Thanks,
Florian
More information about the Libc-alpha
mailing list