posixtm-tests: port to buggy compiler
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 21 Jun 2012 09:13:59 +0000 (02:13 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 21 Jun 2012 09:15:07 +0000 (02:15 -0700)
commitadff17f337187985ea8c62b961fde5c9544911aa
tree1deb2e49c6c0b43716f9264fc2911c1d1ae849f0
parentbdb21d38b29f55d7266691007857697ecb2291b5
posixtm-tests: port to buggy compiler

Problem reported by Simon Josefsson in
<http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00246.html>.
* modules/posixtm-tests (Depends-on): Add stdint.
* tests/test-posixtm.c (struct posixtm_test.t_expected):
Now of type int_least64_t, not int64_t, both because that's
what INT64_C returns and because int_least64_t works even
on 72-bit hosts.
(T): Use INT64_C on constants outside the traditional int range,
to work around compiler bug noted by Simon.
ChangeLog
modules/posixtm-tests
tests/test-posixtm.c