projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
NEWS.stable: log cherry-pick [27147dc]->[4c5d3e6] doc: update users.txt
[gnulib.git]
/
tests
/
test-round2.c
diff --git
a/tests/test-round2.c
b/tests/test-round2.c
index
cad256d
..
f89badf
100644
(file)
--- a/
tests/test-round2.c
+++ b/
tests/test-round2.c
@@
-1,5
+1,5
@@
/* Test of rounding to nearest, breaking ties away from zero.
/* Test of rounding to nearest, breaking ties away from zero.
- Copyright (C) 2007-201
0
Free Software Foundation, Inc.
+ Copyright (C) 2007-201
1
Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@
-17,6
+17,9
@@
/* Written by Ben Pfaff <blp@gnu.org>, 2007.
Heavily based on code by Bruno Haible. */
/* Written by Ben Pfaff <blp@gnu.org>, 2007.
Heavily based on code by Bruno Haible. */
+/* When this test fails on some platform, build it together with the gnulib
+ module 'fprintf-posix' for optimal debugging output. */
+
/* Get the two reference implementations of round under the names
round_reference1 and round_reference2.
/* Get the two reference implementations of round under the names
round_reference1 and round_reference2.
@@
-62,8
+65,10
@@
equal (const char *message, DOUBLE x, DOUBLE y0, DOUBLE y1)
return true;
else
{
return true;
else
{
+#if GNULIB_TEST_FPRINTF_POSIX
fprintf (stderr, "%s: "FUNCTION"(%g(%a)) = %g(%a) or %g(%a)?\n",
message, x, x, y0, y0, y1, y1);
fprintf (stderr, "%s: "FUNCTION"(%g(%a)) = %g(%a) or %g(%a)?\n",
message, x, x, y0, y0, y1, y1);
+#endif
return false;
}
}
return false;
}
}