From 84212a76b629cd735bbb76b825a72ea93091d347 Mon Sep 17 00:00:00 2001 From: Pierre Schweitzer Date: Sat, 19 Nov 2011 09:44:49 +0000 Subject: [PATCH] [MSVCRT_APITEST] Add more tests svn path=/trunk/; revision=54430 --- rostests/apitests/msvcrt/ieee.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/rostests/apitests/msvcrt/ieee.c b/rostests/apitests/msvcrt/ieee.c index 528e9c3ad61..e6a1883f4a8 100644 --- a/rostests/apitests/msvcrt/ieee.c +++ b/rostests/apitests/msvcrt/ieee.c @@ -22,6 +22,8 @@ void test_finite(void) ok(_finite(tested.d) == FALSE, "_finite = TRUE\n"); tested.l = 0xFFF8000000000001LL; ok(_finite(tested.d) == FALSE, "_finite = TRUE\n"); + tested.l = 0xFFF8000000000000LL; + ok(_finite(tested.d) == FALSE, "_finite = TRUE\n"); tested.l = 0xFFF7FFFFFFFFFFFFLL; ok(_finite(tested.d) == FALSE, "_finite = TRUE\n"); tested.l = 0xFFF0000000000001LL; @@ -71,6 +73,12 @@ void test_fpclass(void) tested.l = 0xFFF8000000000001LL; class = _fpclass(tested.d); ok(class == _FPCLASS_QNAN, "class = %d\n", class); + tested.l = 0xFFF8000000000000LL; + class = _fpclass(tested.d); + /* Normally it has no class, but w2k3 defines it + * like that + */ + ok(class == _FPCLASS_QNAN, "class = %d\n", class); tested.l = 0xFFF7FFFFFFFFFFFFLL; class = _fpclass(tested.d); /* According to IEEE, it should be Signaling NaN, but @@ -151,6 +159,8 @@ void test_isnan(void) ok(_isnan(tested.d) == TRUE, "_isnan = FALSE\n"); tested.l = 0xFFF8000000000001LL; ok(_isnan(tested.d) == TRUE, "_isnan = FALSE\n"); + tested.l = 0xFFF8000000000000LL; + ok(_isnan(tested.d) == TRUE, "_isnan = FALSE\n"); tested.l = 0xFFF7FFFFFFFFFFFFLL; ok(_isnan(tested.d) == TRUE, "_isnan = FALSE\n"); tested.l = 0xFFF0000000000001LL;