Skip the long-double epsilon checks on FreeBSD/i386

Sponsored by: EMC / Isilon Storage Division
This commit is contained in:
Enji Cooper 2014-11-16 20:34:46 +00:00
parent a57275b601
commit 66152388f6

View File

@ -58,6 +58,7 @@ ATF_TC_BODY(t_precision, tc)
x += DBL_EPSILON;
ATF_CHECK(x == 2.0);
#if !defined(__FreeBSD__) || !defined(__i386__)
y += LDBL_EPSILON;
ATF_CHECK(y != 1.0L);
y -= 1;
@ -65,6 +66,7 @@ ATF_TC_BODY(t_precision, tc)
y = 2;
y += LDBL_EPSILON;
ATF_CHECK(y == 2.0L);
#endif
}
ATF_TP_ADD_TCS(tp)