Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/lib/libc/gen Fix masking for the fpsetmask_basic test, ...



details:   https://anonhg.NetBSD.org/src/rev/d3f61ae3b8b7
branches:  trunk
changeset: 814226:d3f61ae3b8b7
user:      martin <martin%NetBSD.org@localhost>
date:      Sat Mar 12 11:55:14 2016 +0000

description:
Fix masking for the fpsetmask_basic test, pointed out by Timo Buhrmester

diffstat:

 tests/lib/libc/gen/t_fpsetmask.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r fa2c18b98e95 -r d3f61ae3b8b7 tests/lib/libc/gen/t_fpsetmask.c
--- a/tests/lib/libc/gen/t_fpsetmask.c  Sat Mar 12 11:45:59 2016 +0000
+++ b/tests/lib/libc/gen/t_fpsetmask.c  Sat Mar 12 11:55:14 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: t_fpsetmask.c,v 1.15 2014/11/18 08:58:08 martin Exp $ */
+/*     $NetBSD: t_fpsetmask.c,v 1.16 2016/03/12 11:55:14 martin Exp $ */
 
 /*-
  * Copyright (c) 1995 The NetBSD Foundation, Inc.
@@ -344,7 +344,7 @@
        for (i = 0; i < __arraycount(lst); i++) {
                fpsetmask(msk | lst[i]);
                ATF_CHECK((fpgetmask() & lst[i]) != 0);
-               fpsetmask(msk & lst[i]);
+               fpsetmask(msk & ~lst[i]);
                ATF_CHECK((fpgetmask() & lst[i]) == 0);
        }
 



Home | Main Index | Thread Index | Old Index