-
Problem report
-
Resolution: Won't fix
-
Trivial
-
None
-
7.0.3
-
None
Steps to reproduce:
- git clone -b 7.0.31 https://github.com/zabbix/zabbix.git
- cd zabbix
- ./bootstrap.sh tests
- ./configure --enable-server --enable-agent --with-mysql --enable-ipv6 --with-net-snmp --with-libcurl --with-libxml2
- make
- make tests
Result:
test@42f213a30412:~$ uname -a
Linux 6fcad53e98d0 5.15.0-122-generic #132-Ubuntu SMP Thu Aug 29 13:45:52 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
7 │ FAILURE │ Expand '{{$USERMACRO}.fmttime(%H:%M:%S)} 1' STDOUT: [==========] Running 1 test(s). [ RUN ] zbx_mock_test_entry [ LOG (DB) ] In substitute_simple_macros_impl() data:'{{$USERMACRO}.fmttime(%H:%M:%S)}' [ LOG (DB) ] In zbx_calculate_macro_function() [ LOG (DB) ] End of zbx_calculate_macro_function(), ret: SUCCEED [ LOG (DB) ] End substitute_simple_macros_impl() data:'06:05:04' [ FAILED ] zbx_mock_test_entry [==========] 1 test(s) run. STDERR: [ ERROR ] --- resulting expression: Expected value "09:05:04" while got "06:05:04" [ LINE ] --- macro_functions.c:95: error: Failure! [ PASSED ] 0 test(s). [ FAILED ] 1 test(s), listed below: [ FAILED ] zbx_mock_test_entry 1 FAILED TEST(S)
Expected:
7 │ OK │ Expand '{{$USERMACRO}.fmttime(%H:%M:%S)} 1'