diff options
Diffstat (limited to 'tests/libs')
-rw-r--r-- | tests/libs/zbxalgo/evaluate.c | 2 | ||||
-rw-r--r-- | tests/libs/zbxcommon/zbx_variant_compare.c | 2 | ||||
-rw-r--r-- | tests/libs/zbxserver/evaluate_function.c | 2 |
3 files changed, 6 insertions, 0 deletions
diff --git a/tests/libs/zbxalgo/evaluate.c b/tests/libs/zbxalgo/evaluate.c index 86e422d9d9c..0bd3a2c7eea 100644 --- a/tests/libs/zbxalgo/evaluate.c +++ b/tests/libs/zbxalgo/evaluate.c @@ -34,6 +34,8 @@ void zbx_mock_test_entry(void **state) ZBX_UNUSED(state); + ZBX_DOUBLE_EPSILON = 0.000001; + if (ZBX_MOCK_SUCCESS != (error = zbx_mock_in_parameter("expression", ¶m_handle)) || ZBX_MOCK_SUCCESS != (error = zbx_mock_string(param_handle, &expression))) { diff --git a/tests/libs/zbxcommon/zbx_variant_compare.c b/tests/libs/zbxcommon/zbx_variant_compare.c index a972a5bdd8c..70d710b509b 100644 --- a/tests/libs/zbxcommon/zbx_variant_compare.c +++ b/tests/libs/zbxcommon/zbx_variant_compare.c @@ -110,6 +110,8 @@ void zbx_mock_test_entry(void **state) ZBX_UNUSED(state); + ZBX_DOUBLE_EPSILON = 0.000001; + mock_read_variant("in.value1", &value1); mock_read_variant("in.value2", &value2); diff --git a/tests/libs/zbxserver/evaluate_function.c b/tests/libs/zbxserver/evaluate_function.c index 58d8cbe1e5d..f31c7fb5056 100644 --- a/tests/libs/zbxserver/evaluate_function.c +++ b/tests/libs/zbxserver/evaluate_function.c @@ -78,6 +78,8 @@ void zbx_mock_test_entry(void **state) zbx_mock_handle_t handle; zbx_variant_t returned_value; + ZBX_DOUBLE_EPSILON = 0.000001; + err = zbx_vc_init(&error); zbx_mock_assert_result_eq("Value cache initialization failed", SUCCEED, err); |