Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-25282

"zbx_mock_test_entry" Test case faiure

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Won't fix
    • Icon: Trivial Trivial
    • None
    • 7.0.3
    • Server (S)
    • None

      Steps to reproduce:

      1. git clone -b 7.0.31 https://github.com/zabbix/zabbix.git
      2. cd zabbix
      3. ./bootstrap.sh tests
      4. ./configure --enable-server --enable-agent --with-mysql --enable-ipv6 --with-net-snmp --with-libcurl --with-libxml2
      5. make
      6. 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'

            zabbix.dev Zabbix Development Team
            S_Munshi Soham Munshi
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: