Re: [yocto] Y2038 proposal


?ukasz Majewski <lukma@...>
 

Hi Alexander,

On Wed, 30 Nov 2022 at 09:28, Lukasz Majewski <lukma@...> wrote:
2. There are ptest available [2] to validate if the Y2038 problem
works correctly.

3. Support for running ptests mentioned in point 2. is already
available in the poky repository [3].
I just ran these tests in (32 bit) qemux86 on top of poky master (e.g.
no magic glibc flags), and they all passed. Do they need to be ran
after setting the date to the 'post-2038 future' to reveal the issues
and produce failures?
Yes. You need to run them with adjusted date:

date +'%Y-%m-%d %T' -s "2038-01-19 03:14:07"
ptest-runner glibc-tests


More info:
https://github.com/lmajewski/meta-y2038/blob/master/README#L201


Alex



Best regards,

Lukasz Majewski

--

DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email: lukma@...

Join {openembedded-architecture@lists.openembedded.org to automatically receive all group messages.