0 Replies Latest reply: Jul 5, 2012 2:59 AM by 905502 RSS

    perl unit tests fail for dbxml-2.5.16

    905502
      Hi,

      I installed the berkeley db xml version 2.5.16 but while attempting to install perl, I came across the following errors when I run 'make test'


      PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, '../blib/lib', '../blib/arch')" t/*.t
      t/btree.t .. 1/35 # Check simple env works with a hash.
      # cursors
      t/btree.t .. ok
      t/dbt.t .... ok
      t/txn.t .... # transaction - commit works
      t/txn.t .... 1/28 # transaction - abort works
      t/txn.t .... ok
      All tests successful.
      Files=3, Tests=73, 1 wallclock secs ( 0.03 usr 0.05 sys + 0.16 cusr 0.17 csys = 0.41 CPU)
      Result: PASS
      make[1]: Leaving directory `/home/emulo/Downloads/install/dbxml-2.5.16/dbxml/src/perl/Db'
      make[1]: Entering directory `/home/emulo/Downloads/install/dbxml-2.5.16/dbxml/src/perl/DbXml'
      PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, '../blib/lib', '../blib/arch')" t/*.t
      t/XmlContainerConfig.t ..... 1/28 BDB XML: illegal flag combination specified to DB->open
      XmlException=SCALAR(0x85c0fb4)# Looks like you planned 28 tests but ran 25.
      # Looks like your test exited with 2 just after 25.
      t/XmlContainerConfig.t ..... Dubious, test returned 2 (wstat 512, 0x200)
      Failed 3/28 subtests
      t/XmlDocument.t ............ ok
      t/XmlEvent.t ............... ok
      t/XmlIndexLookup.t ......... ok
      t/XmlIndexSpecification.t .. ok
      t/XmlManager.t ............. 1/92 failed
      Error: The flags DB_READ_UNCOMMITTED and DB_TXN_NOT_DURABLE cannot be used directly, you must set these flags using XmlContainerConfig.setReadUncommitted and XmlContainerConfig.setTransactionNotDurable. in t/XmlManager.t, line 367
      # Looks like you planned 92 tests but ran 53.
      # Looks like your test exited with -1 just after 53.
      t/XmlManager.t ............. Dubious, test returned 255 (wstat 65280, 0xff00)
      Failed 39/92 subtests
      t/XmlQueryContext.t ........ ok
      t/XmlResults.t ............. ok
      t/XmlValue.t ............... ok

      Test Summary Report
      -------------------
      t/XmlContainerConfig.t (Wstat: 512 Tests: 25 Failed: 0)
      Non-zero exit status: 2
      Parse errors: Bad plan. You planned 28 tests but ran 25.
      t/XmlManager.t (Wstat: 65280 Tests: 53 Failed: 0)
      Non-zero exit status: 255
      Parse errors: Bad plan. You planned 92 tests but ran 53.
      Files=9, Tests=535, 5 wallclock secs ( 0.11 usr 0.15 sys + 1.04 cusr 1.51 csys = 2.81 CPU)
      Result: FAIL
      Failed 2/9 test programs. 0/535 subtests failed.


      Any idea what could be causing this?

      Edited by: 902499 on Jul 5, 2012 12:59 AM