From f789e6b332c051c3716534c9557827629b1e680f Mon Sep 17 00:00:00 2001 From: Andrew Bachmann Date: Wed, 18 May 2005 21:41:22 +0000 Subject: [PATCH] all tests now passing, print table entries only in case of failures git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12726 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/tests/kernel/libroot/posix/math/math_test.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/tests/kernel/libroot/posix/math/math_test.cpp b/src/tests/kernel/libroot/posix/math/math_test.cpp index 64ad481d1b..2af85e84d3 100644 --- a/src/tests/kernel/libroot/posix/math/math_test.cpp +++ b/src/tests/kernel/libroot/posix/math/math_test.cpp @@ -62,12 +62,12 @@ main(int argc, char **argv) double f = (double)i/7.0; double x = sin(f); double y = be_sin(f); - fprintf(stdout, "%0.3f\t%0.10f\t%0.10f", f, x, y); if (fabs(x - y) > 0.000001) { + fprintf(stdout, "%0.3f\t%0.10f\t%0.10f", f, x, y); fprintf(stdout, " **"); + fprintf(stdout, "\n"); result = B_ERROR; } - fprintf(stdout, "\n"); } fprintf(stdout, "\n"); @@ -77,12 +77,12 @@ main(int argc, char **argv) double f = (double)i/7.0; double x = cos(f); double y = be_cos(f); - fprintf(stdout, "%0.3f\t%0.10f\t%0.10f", f, x, y); if (fabs(x - y) > 0.000001) { + fprintf(stdout, "%0.3f\t%0.10f\t%0.10f", f, x, y); fprintf(stdout, " **"); + fprintf(stdout, "\n"); result = B_ERROR; } - fprintf(stdout, "\n"); } fprintf(stdout, "\n");