From 83a338b1a0e5691f966c98d327d1f03c80147fdd Mon Sep 17 00:00:00 2001 From: Andrejs Kozlovs Date: Tue, 9 Apr 2019 13:32:29 +0000 Subject: .......... [DEV-873] converted item_preproc_xpath function cunit test to cmocka framework --- .../zabbix_server/preprocessor/item_preproc_test.c | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 tests/zabbix_server/preprocessor/item_preproc_test.c (limited to 'tests/zabbix_server/preprocessor/item_preproc_test.c') 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); +} -- cgit v1.2.3