[PATCH] tst: Add test for utime

Arjun Shankar arjun@redhat.com
Thu Mar 4 16:17:47 GMT 2021


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.

Cheers,
Arjun

[1] https://bugzilla.redhat.com/show_bug.cgi?id=1795576



More information about the Libc-alpha mailing list