Module Name: src
Committed By: maya
Date: Thu Aug 25 00:26:01 UTC 2016
Modified Files:
src/tests/lib/libm: t_ldexp.c
Log Message:
don't skip the entire test iteration if exp2=SKIP, only the second
application of the function
this doesn't introduce new failures on amd64
To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/tests/lib/libm/t_ldexp.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_ldexp.c
diff -u src/tests/lib/libm/t_ldexp.c:1.14 src/tests/lib/libm/t_ldexp.c:1.15
--- src/tests/lib/libm/t_ldexp.c:1.14 Tue Nov 4 00:20:19 2014
+++ src/tests/lib/libm/t_ldexp.c Thu Aug 25 00:26:01 2016
@@ -1,4 +1,4 @@
-/* $NetBSD: t_ldexp.c,v 1.14 2014/11/04 00:20:19 justin Exp $ */
+/* $NetBSD: t_ldexp.c,v 1.15 2016/08/25 00:26:01 maya Exp $ */
/*-
* Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: t_ldexp.c,v 1.14 2014/11/04 00:20:19 justin Exp $");
+__RCSID("$NetBSD: t_ldexp.c,v 1.15 2016/08/25 00:26:01 maya Exp $");
#include <sys/param.h>
@@ -170,10 +170,8 @@ run_test(struct ldexp_test *table)
v = ldexp(table->x, table->exp1);
- if (table->exp2 == SKIP)
- continue;
-
- v = ldexp(v, table->exp2);
+ if (table->exp2 != SKIP)
+ v = ldexp(v, table->exp2);
(void)snprintf(outbuf, sizeof(outbuf), FORMAT, v);