diffutils/tests/y2038-vs-32bit
Carlo Marcelo Arenas Belón 13a05d1e95 gnulib: fix Y2038 bug (again)
AC_SYS_LARGEFILE meaning has changed, need AC_SYS_YEAR2038 as well

* NEWS: mention this
* tests: add test
* bootstrap.conf: add year2038

Copyright-paperwork-exempt: yes
2023-05-13 22:23:57 -07:00

14 lines
209 B
Bash
Executable File

#!/bin/sh
# dates after Y2K38 are safe
. "${srcdir=.}/init.sh"; path_prepend_ ../src
fail=0
touch -t 203901010000 in || skip_ 'touch -t 2039... failed'
cmp in in || fail=1
diff in in || fail=1
Exit $fail