4 Replies Latest reply: Jan 30, 2011 3:13 AM by 655560 RSS

    Perl unit tests fail

    834629
      I tried to build version 2.5.16 with the following options:


      ./buildall.sh prefix=/usr/local enable-perl

      I got the following message:


      make[1]: Entering directory `--------/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 ..... UNIVERSAL->import is deprecated and will be removed in a future perl at --------/dbxml-2.5.16/dbxml/src/perl/DbXml/../blib/lib/Sleepycat/DbXml.pm line 461
      UNIVERSAL->import is deprecated and will be removed in a future perl at --------/dbxml-2.5.16/dbxml/src/perl/DbXml/../blib/lib/Sleepycat/DbXml.pm line 519
      t/XmlContainerConfig.t ..... 1/28 BDB XML: Database environment not configured for encryption
      XmlException=SCALAR(0xd6cac0)# 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 ............ UNIVERSAL->import is deprecated and will be removed in a future perl at --------/dbxml-2.5.16/dbxml/src/perl/DbXml/../blib/lib/Sleepycat/DbXml.pm line 461
      UNIVERSAL->import is deprecated and will be removed in a future perl at --------/dbxml-2.5.16/dbxml/src/perl/DbXml/../blib/lib/Sleepycat/DbXml.pm line 519
      t/XmlDocument.t ............ ok
      t/XmlEvent.t ............... UNIVERSAL->import is deprecated and will be removed in a future perl at --------/dbxml-2.5.16/dbxml/src/perl/DbXml/../blib/lib/Sleepycat/DbXml.pm line 461
      UNIVERSAL->import is deprecated and will be removed in a future perl at --------/dbxml-2.5.16/dbxml/src/perl/DbXml/../blib/lib/Sleepycat/DbXml.pm line 519
      t/XmlEvent.t ............... ok
      t/XmlIndexLookup.t ......... UNIVERSAL->import is deprecated and will be removed in a future perl at --------/dbxml-2.5.16/dbxml/src/perl/DbXml/../blib/lib/Sleepycat/DbXml.pm line 461
      UNIVERSAL->import is deprecated and will be removed in a future perl at --------/dbxml-2.5.16/dbxml/src/perl/DbXml/../blib/lib/Sleepycat/DbXml.pm line 519
      t/XmlIndexLookup.t ......... ok
      t/XmlIndexSpecification.t .. UNIVERSAL->import is deprecated and will be removed in a future perl at --------/dbxml-2.5.16/dbxml/src/perl/DbXml/../blib/lib/Sleepycat/DbXml.pm line 461
      UNIVERSAL->import is deprecated and will be removed in a future perl at --------/dbxml-2.5.16/dbxml/src/perl/DbXml/../blib/lib/Sleepycat/DbXml.pm line 519
      t/XmlIndexSpecification.t .. ok
      t/XmlManager.t ............. UNIVERSAL->import is deprecated and will be removed in a future perl at --------/dbxml-2.5.16/dbxml/src/perl/DbXml/../blib/lib/Sleepycat/DbXml.pm line 461
      UNIVERSAL->import is deprecated and will be removed in a future perl at --------/dbxml-2.5.16/dbxml/src/perl/DbXml/../blib/lib/Sleepycat/DbXml.pm line 519
      t/XmlManager.t ............. 31/92 failed
      Error: Flags check failed for reindexContainer(). Expected some combination of 'DBXML_INDEX_NODES|DBXML_NO_INDEX_NODES|DBXML_STATISTICS|DBXML_NO_STATISTICS', but was passed 'DBXML_INDEX_NODES|DBXML_TRANSACTIONAL|DB_NOMMAP|DBXML_CHKSUM|DB_EXCL|DB_RDONLY'. 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 ........ UNIVERSAL->import is deprecated and will be removed in a future perl at --------/dbxml-2.5.16/dbxml/src/perl/DbXml/../blib/lib/Sleepycat/DbXml.pm line 461
      UNIVERSAL->import is deprecated and will be removed in a future perl at --------/dbxml-2.5.16/dbxml/src/perl/DbXml/../blib/lib/Sleepycat/DbXml.pm line 519
      t/XmlQueryContext.t ........ ok
      t/XmlResults.t ............. UNIVERSAL->import is deprecated and will be removed in a future perl at --------/dbxml-2.5.16/dbxml/src/perl/DbXml/../blib/lib/Sleepycat/DbXml.pm line 461
      UNIVERSAL->import is deprecated and will be removed in a future perl at --------/dbxml-2.5.16/dbxml/src/perl/DbXml/../blib/lib/Sleepycat/DbXml.pm line 519
      t/XmlResults.t ............. ok
      t/XmlValue.t ............... UNIVERSAL->import is deprecated and will be removed in a future perl at --------/dbxml-2.5.16/dbxml/src/perl/DbXml/../blib/lib/Sleepycat/DbXml.pm line 461
      UNIVERSAL->import is deprecated and will be removed in a future perl at --------/dbxml-2.5.16/dbxml/src/perl/DbXml/../blib/lib/Sleepycat/DbXml.pm line 519
      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, 3 wallclock secs ( 0.11 usr 0.02 sys + 0.69 cusr 0.14 csys = 0.96 CPU)
      Result: FAIL
      Failed 2/9 test programs. 0/535 subtests failed.
      make[1]: *** [test_dynamic] Error 255
      make[1]: Leaving directory `--------/dbxml-2.5.16/dbxml/src/perl/DbXml'




      If I don't used --enable-perl everything goes fine, the only problem is with perl enabled.
      I'm using perl version 5.12.1.

      Any ideas?

      thanks
        • 1. Re: Perl unit tests fail
          655560
          Hi,

          I can not reproduce this issue on my Linux platfrom -- all perl tests passed:
          PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, '../blib/lib', '../blib/arch')" t/*.t
          t/XmlContainerConfig.......ok
          t/XmlDocument..............ok
          t/XmlEvent.................ok
          t/XmlIndexLookup...........ok
          t/XmlIndexSpecification....ok
          t/XmlManager...............ok
          t/XmlQueryContext..........ok
          t/XmlResults...............ok
          t/XmlValue.................ok
          All tests successful.
          It seems that "UNIVERSAL->import is deprecated and will be removed in a future perl at" is an perl environment issue. Could you please try solve those perl environment issue/warning then see if the issue still exist?

          Best regards,
          Rucong Zhao
          Oracle Berkeley DB XML
          • 2. Re: Perl unit tests fail
            834629
            I turned off the deprecate warnings but still the tests fail.

            And her is the result


            PERL_DL_NONLAZY=1 /usr/bin/perl -w "-MExtUtils::Command::MM" "-e" "test_harness(0, '../blib/lib', '../blib/arch')" t/*.t
            t/XmlContainerConfig.t ..... 3/28 XmlException=SCALAR(0xd71428)# 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 print() on closed filehandle F at t/XmlManager.t line 146, <DATA> line 225.
            print() on closed filehandle F at t/XmlManager.t line 248, <DATA> line 225.
            t/XmlManager.t ............. 46/92 failed
            Error: Flags check failed for reindexContainer(). Expected some combination of 'DBXML_INDEX_NODES|DBXML_NO_INDEX_NODES|DBXML_STATISTICS|DBXML_NO_STATISTICS', but was passed 'DBXML_TRANSACTIONAL|DB_THREAD|DBXML_CHKSUM|DBXML_ENCRYPT|DB_EXCL|DB_RDONLY'. 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, 3 wallclock secs ( 0.09 usr 0.01 sys + 0.68 cusr 0.14 csys = 0.92 CPU)
            Result: FAIL
            Failed 2/9 test programs. 0/535 subtests failed.



            best,
            • 3. Re: Perl unit tests fail
              655560
              Hi,

              Still can not reproduce the issue. Could you please tell me:
              1) What's the OS version. Is it 32bit or 64bit?
              2) Is the package downloaded from http://download.oracle.com/otn/berkeley-db/dbxml-2.5.16.tar.gz? Please ensure that no code has been changed.

              Best regards,
              Rucong Zhao
              Oracle Berkeley DB XML
              • 4. Re: Perl unit tests fail
                655560
                Hi,

                The failures look like they may be mismatched flags because of another version of Berkeley DB laying around. Please also use "ldd" to make sure:
                * Is the dbxml link to the BDB (db-2.8.26) in dbxml 2.5.16 package?
                * Did you change the BDB code / version?

                Best regards,
                Rucong Zhao
                Oracle Berkeley DB XML