Module Name: src Committed By: maya Date: Mon May 27 00:24:37 UTC 2019
Modified Files: src/tests/lib/libm: t_sin.c Log Message: Print result of function we tested (sinf), not of function we didn't test (sin). no need to print 17 digits for a float. from Riastradh. To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 src/tests/lib/libm/t_sin.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/tests/lib/libm/t_sin.c diff -u src/tests/lib/libm/t_sin.c:1.6 src/tests/lib/libm/t_sin.c:1.7 --- src/tests/lib/libm/t_sin.c:1.6 Wed Nov 7 04:00:13 2018 +++ src/tests/lib/libm/t_sin.c Mon May 27 00:24:37 2019 @@ -1,4 +1,4 @@ -/* $NetBSD: t_sin.c,v 1.6 2018/11/07 04:00:13 riastradh Exp $ */ +/* $NetBSD: t_sin.c,v 1.7 2019/05/27 00:24:37 maya Exp $ */ /*- * Copyright (c) 2011 The NetBSD Foundation, Inc. @@ -194,8 +194,8 @@ ATF_TC_BODY(sinf_angles, tc) } if (!ok) { - atf_tc_fail_nonfatal("sinf(%d deg) = %.17g != %.17g", - deg, (double)sin(theta), (double)sin_theta); + atf_tc_fail_nonfatal("sinf(%d deg) = %.8g != %.8g", + deg, sinf(theta), sin_theta); } } }