implementation of isinf() (which differs between positive and negative
inf). All other tests use boolean retval only and test for the signess
of the values
and does not differ between positive and negative inf. 'isinf(3)' is a
builtin in gcc 4.3 and previous check won't work anymore. Instead of,
test whether value is lesser or greater than zero.
- renabled the INF testsuite
I removed the checks which called endmntent() multiple times resp. with a
NULL pointer. Behavior in first case is undefined and latter causes a
segfault (I could not find documentation that this is allowed). Hence,
it does not make sense to test this.
test 'malloc(0)' only, when WANT_MALLOC_ZERO is set
the '%Zu' printf format specifier is bogus (from libc5 ages). I replaced it
with the '%zu' one.
Please note, that this test still fails because it uses glibc specific
features.
removed tests which set a non-C locale. Broken usage of 'strptime()' result
was fixed too. This test should succeed now.
this test was added while working on the '%F/%G' patch and verifies the
isinf() + isnan() functions.
Please see
http://cvs.fedora.redhat.com/viewcvs/rpms/dietlibc/devel/runtests-X.sh?root
=extras&view=markup
for tests which are known to be broken.
It fixes handling of -INF values in __dtostr() too; previously, there
was
| unsigned int i; | if ((i=isinf(d))) return
copystring(buf,maxlen,i>0?"inf":"-inf"); ~~~ which evaluated to true
everytime. The copystring() function worked for 3-letter words only but
not for '-inf'.
The last argument of __dtostr() was changed from a boolean flag to a
bitmask. Bit 0 encodes 'g' or 'f', and bit 1 lower-/uppercase. There
should be probably added some macros for them; for now, these values
are used directly.
Please note that this might affect other applications (liblowfat?) too
which are using __dtostr().