Debian Codegraph @

tests/y2038-vs-32-bit

raw
1 #!/bin/sh
2 # This would fail with grep-3.9 and 3.10 on 32-bit ARM and x86 hosts.
3 . "${srcdir=.}/init.sh"; path_prepend_ ../src
4
5 fail=0
6
7 echo text > in || framework_failure_
8 touch -t 203901010000 in || skip_ 'touch -t 2039... failed'
9 grep t in > out 2> err || fail=1
10 compare in out || fail=1
11 compare /dev/null err || fail=1
12
13 Exit $fail