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
diff options
context:
space:
mode:
authorAndrejs Kozlovs <andrejs.kozlovs@zabbix.com>2019-04-09 16:32:29 +0300
committerAndrejs Kozlovs <andrejs.kozlovs@zabbix.com>2019-04-09 16:32:29 +0300
commit83a338b1a0e5691f966c98d327d1f03c80147fdd (patch)
treedf16a34c18c2e8d9ca395863191a833fe249b756 /tests/zabbix_server/preprocessor/item_preproc_test.c
parent5b15dc8ea0b0add0c5696e9f1d89c4ad58511530 (diff)
.......... [DEV-873] converted item_preproc_xpath function cunit test to cmocka framework
Diffstat (limited to 'tests/zabbix_server/preprocessor/item_preproc_test.c')
-rw-r--r--tests/zabbix_server/preprocessor/item_preproc_test.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/zabbix_server/preprocessor/item_preproc_test.c b/tests/zabbix_server/preprocessor/item_preproc_test.c
new file mode 100644
index 00000000000..27c58a97701
--- /dev/null
+++ b/tests/zabbix_server/preprocessor/item_preproc_test.c
@@ -0,0 +1,23 @@
+/*
+** Zabbix
+** Copyright (C) 2001-2019 Zabbix SIA
+**
+** This program is free software; you can redistribute it and/or modify
+** it under the terms of the GNU General Public License as published by
+** the Free Software Foundation; either version 2 of the License, or
+** (at your option) any later version.
+**
+** This program is distributed in the hope that it will be useful,
+** but WITHOUT ANY WARRANTY; without even the implied warranty of
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+** GNU General Public License for more details.
+**
+** You should have received a copy of the GNU General Public License
+** along with this program; if not, write to the Free Software
+** Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+**/
+
+int zbx_item_preproc_xpath(zbx_variant_t *value, const char *params, char **errmsg)
+{
+ return item_preproc_xpath(value, params, errmsg);
+}