diff options
| author | Lubomir Rintel <lkundrak@v3.sk> | 2017-03-28 13:33:27 +0200 |
|---|---|---|
| committer | Lubomir Rintel <lkundrak@v3.sk> | 2017-03-28 13:52:27 +0200 |
| commit | a482fbe1b6ace34f98d17e8526a2daad5a497bcb (patch) | |
| tree | a574bab8b175fe19550564a98917e5cf2b71ca4a /src/tests | |
| parent | 1f623bacbfdef5438522844c87138ef9418f8d1c (diff) | |
| download | NetworkManager-a482fbe1b6ace34f98d17e8526a2daad5a497bcb.tar.gz | |
tests/general: allow error margin on comparing floats
Fixes test on Fedora/i686.
Diffstat (limited to 'src/tests')
| -rw-r--r-- | src/tests/test-general.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tests/test-general.c b/src/tests/test-general.c index 00f66bc2df..37bbc5ca9b 100644 --- a/src/tests/test-general.c +++ b/src/tests/test-general.c @@ -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); \ |
