Module Name:    src
Committed By:   riastradh
Date:           Sat Nov 10 23:04:16 UTC 2018

Modified Files:
        src/tests/lib/libm: t_cos.c

Log Message:
Print the input to cosf on failure too.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/tests/lib/libm/t_cos.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_cos.c
diff -u src/tests/lib/libm/t_cos.c:1.6 src/tests/lib/libm/t_cos.c:1.7
--- src/tests/lib/libm/t_cos.c:1.6	Wed Nov  7 04:00:13 2018
+++ src/tests/lib/libm/t_cos.c	Sat Nov 10 23:04:16 2018
@@ -1,4 +1,4 @@
-/* $NetBSD: t_cos.c,v 1.6 2018/11/07 04:00:13 riastradh Exp $ */
+/* $NetBSD: t_cos.c,v 1.7 2018/11/10 23:04:16 riastradh Exp $ */
 
 /*-
  * Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -179,8 +179,8 @@ ATF_TC_BODY(cosf_angles, tc)
 
 		assert(cos_theta != 0);
 		if (!(fabsf((cosf(theta) - cos_theta)/cos_theta) <= eps)) {
-			atf_tc_fail_nonfatal("cosf(%d deg) = %.8g != %.8g",
-			    deg, cos(theta), cos_theta);
+			atf_tc_fail_nonfatal("cosf(%d deg = %.8g) = %.8g"
+			    " != %.8g", deg, theta, cos(theta), cos_theta);
 		}
 	}
 }

Reply via email to