--- testcases/misc/math/float/thread_code.c_org	2009-09-27 22:28:47.742043227 +0400
+++ testcases/misc/math/float/thread_code.c	2009-09-28 13:41:51.799827269 +0400
@@ -124,7 +124,7 @@
 
 	x = fabs(r - e); /* diff expected/computed */
 
-	if(x > EPS) { /* error ? */
+	if ((x > EPS) || (x != x)) { /* error ? */
 		/* compute exponent parts */
 		(void)frexp(r, &pr); /* for computed */
 		(void)frexp(x, &px); /* for difference */
