Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zabbix/zabbix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorVladislavs Sokurenko <vladislavs.sokurenko@zabbix.com>2022-02-09 13:25:55 +0300
committerVladislavs Sokurenko <vladislavs.sokurenko@zabbix.com>2022-02-09 13:25:55 +0300
commit7faf59b670da5fd78d2b95bc7663c74d0ac8523c (patch)
treebe806cdbde065ff4f705d03f5f49bc0e2604e89f /tests
parente6e401cfc87ffa6b8224f1cc16c8469918d6d93f (diff)
.......PS. [ZBX-20506] fixed tests
Diffstat (limited to 'tests')
-rw-r--r--tests/mocks/configcache/configcache.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/mocks/configcache/configcache.c b/tests/mocks/configcache/configcache.c
index 4319cca2f23..72bb792f822 100644
--- a/tests/mocks/configcache/configcache.c
+++ b/tests/mocks/configcache/configcache.c
@@ -45,6 +45,13 @@ void *__wrap_zbx_hashset_search(zbx_hashset_t *hs, const void *data)
{
int i;
+ if (&mock_config.dc.items == hs)
+ {
+ static ZBX_DC_ITEM item = {.hostid = 1};
+
+ return &item;
+ }
+
if (0 != (mock_config.initialized & ZBX_MOCK_CONFIG_USERMACROS))
{
if (hs == &mock_config.dc.hmacros_hm)