X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-trunc2.c;h=c9f0d8fdd675a5d45df0f4ccad11755df705899a;hb=ea1a2077de32da9837b495d589509f8269807dd1;hp=397e1ade0d1488d1e057b29cd09fd56dc36e1f60;hpb=b2e2010c7c902235b5efb5bd3c6529f61b093aa4;p=gnulib.git diff --git a/tests/test-trunc2.c b/tests/test-trunc2.c index 397e1ade0..c9f0d8fdd 100644 --- a/tests/test-trunc2.c +++ b/tests/test-trunc2.c @@ -16,6 +16,9 @@ /* Written by Bruno Haible , 2007. */ +/* When this test fails on some platform, build it together with the gnulib + module 'fprintf-posix' for optimal debugging output. */ + #include #include @@ -123,8 +126,10 @@ check (double x) return 0; else { +#if GNULIB_TEST_FPRINTF_POSIX fprintf (stderr, "trunc %g(%a) = %g(%a) or %g(%a)?\n", x, x, reference, reference, result, result); +#endif return 1; } }