mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-02 00:40:11 +01:00
tests/general: allow error margin on comparing floats
Fixes test on Fedora/i686.
This commit is contained in:
parent
1f623bacbf
commit
a482fbe1b6
2 changed files with 2 additions and 2 deletions
|
|
@ -170,7 +170,7 @@ _exp10 (guint16 ex)
|
|||
return v;
|
||||
}
|
||||
|
||||
/*/
|
||||
/*
|
||||
* nm_utils_exp10:
|
||||
* @ex: the exponent
|
||||
*
|
||||
|
|
|
|||
|
|
@ -1667,7 +1667,7 @@ test_nm_utils_exp10 (void)
|
|||
if (isinf (_b)) \
|
||||
g_assert (isinf (_a)); \
|
||||
else if (_b >= 0.0 && _b <= 0.0) \
|
||||
g_assert (_a >= 0.0 && _a <= 0.0); \
|
||||
g_assert (_a - _b < G_MINFLOAT); \
|
||||
else { \
|
||||
double _x = (_a) - (_b); \
|
||||
g_assert (_b > 0.0); \
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue