dbTalk Databases Forums  

Re: BerkeleyDB CDB

comp.databases.berkeley-db comp.databases.berkeley-db


Discuss Re: BerkeleyDB CDB in the comp.databases.berkeley-db forum.



Reply
 
Thread Tools Display Modes
  #21  
Old   
Nathan Hackett
 
Posts: n/a

Default Re: BerkeleyDB CDB - 08-20-2003 , 12:50 PM






In article <22fa329d.0308200049.218efd6e (AT) posting (DOT) google.com>,
Paul.Marquess (AT) btinternet (DOT) com (Paul Marquess) writes:
Quote:
Nope. "make test" should run the version in the blib directory and
ignore whatever is installed. Do you have an environment variable,
like LD_LIBRARY_PATH that points to the Berkeley DB 3.3 library?

The following test seems to confirm that the tests are using at least
the BerkeleyDB.pm that is currently installed?

#!./perl -w

use strict ;

BEGIN {
unless(grep /blib/, @INC) {
chdir 't' if -d 't';
@INC = '../lib' if -d '../lib';
}
}

use BerkeleyDB;
use t::util ;

foreach (keys %INC) {
print STDERR "$_ : $INC{$_}\n";
}


Here is the output:

t/inc...............Exporter.pm : /System/Library/Perl/Exporter.pm
Carp.pm : /System/Library/Perl/Carp.pm
XSLoader.pm : /System/Library/Perl/darwin/XSLoader.pm
strict.pm : /System/Library/Perl/strict.pm
vars.pm : /System/Library/Perl/vars.pm
re.pm : /System/Library/Perl/darwin/re.pm
warnings/register.pm : /System/Library/Perl/warnings/register.pm
warnings.pm : /System/Library/Perl/warnings.pm
t/util.pm : t/util.pm
Symbol.pm : /System/Library/Perl/Symbol.pm
UNIVERSAL.pm : /System/Library/Perl/UNIVERSAL.pm
File/Basename.pm : /System/Library/Perl/File/Basename.pm
BerkeleyDB.pm : /Library/Perl/darwin/BerkeleyDB.pm
Exporter/Heavy.pm : /System/Library/Perl/Exporter/Heavy.pm
File/Path.pm : /System/Library/Perl/File/Path.pm
AutoLoader.pm : /System/Library/Perl/AutoLoader.pm
FAILED before any test output arrived
t/join..............ok


Note that the source for BerkeleyDB.pm is the currently installed one?

/Nathan.


Reply With Quote
  #22  
Old   
Paul Marquess
 
Posts: n/a

Default Re: BerkeleyDB CDB - 08-21-2003 , 03:30 AM






hackett (AT) gardi (DOT) home.rapdat.com (Nathan Hackett) wrote in message news:<O4-dnUY5ZZWoLd6iRVn-gg (AT) speakeasy (DOT) net>...
Quote:
In article <22fa329d.0308200049.218efd6e (AT) posting (DOT) google.com>,
Paul.Marquess (AT) btinternet (DOT) com (Paul Marquess) writes:

Sorry, I understand your use of Trace to get debugging info. What I
don't get is the part about error codes not being updated. The only
thing I can think of is that errno will probably get reset if you use
Trace in it's current form.


Oh. What I meant by that was that in my original test case that was failing
under 3.3, the only way I found out that _db_cursor() was returning error
22 was by enabling TRACE. It would have been nice if error 22 showed up in
BerkeleyDB::Error. Otherwise, there was absolutely no indication of the
error except that the method was returning an undefined value.

It seems that the error code is making it into the BerkeleyDB object:

if ((db->Status = db_cursor(db, db->txn, &cursor, flags)) == 0){

So I don't understand why BerkeleyDB::Error did not show the error.
It should. I'll check the code.

Paul


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.