/macosx-10.10/BerkeleyDB-21/db/perl/BerkeleyDB/t/ |
H A D | destroy.t | 28 ok 4, my $db1 = tie %hash, 'BerkeleyDB::Hash', -Filename => $Dfile, 35 $db1->Txn($txn); 46 $ret += $db1->db_put($k, $v) ; 52 ok 8, my $cursor = $db1->db_cursor() ; 68 ok 11, $cursor = $db1->db_cursor() ; 76 #undef $db1 ; 87 ok 13, my $db1 = tie %hash, 'BerkeleyDB::Hash', 92 ok 14, $cursor = $db1->db_cursor() ;
|
H A D | txn.t | 48 ok 8, my $db1 = tie %hash, 'BerkeleyDB::Hash', -Filename => $Dfile, 56 $db1->Txn($txn); 67 $ret += $db1->db_put($k, $v) ; 73 ok 12, my $cursor = $db1->db_cursor() ; 89 ok 15, $cursor = $db1->db_cursor() ; 100 undef $db1 ; 119 ok 22, my $db1 = tie %hash, 'BerkeleyDB::Hash', -Filename => $Dfile, 126 $db1->Txn($txn); 137 $ret += $db1->db_put($k, $v) ; 143 ok 26, my $cursor = $db1 [all...] |
H A D | db-3.1.t | 126 my $db1 = new BerkeleyDB::Hash -Filename => $Dfile, 129 isa_ok $db1, 'BerkeleyDB::Hash', " create database ok"; 145 ok addData($db1, %data), " added to db1 ok" ; 148 undef $db1 ; 167 my $db1 = new BerkeleyDB::Hash -Filename => $Dfile, 170 isa_ok $db1, 'BerkeleyDB::Hash', " create database ok"; 186 ok addData($db1, %data), " add data to db1" ; 189 undef $db1 ; [all...] |
H A D | encrypt.t | 122 ok 11, my $db1 = new BerkeleyDB::Hash -Filename => $Dfile, 126 ok 12, ! $db1->db_get("red", $v) ; 128 undef $db1; 363 ok 41, my $db1 = new BerkeleyDB::Hash -Filename => $Dfile, 372 ok 42, ! $db1->db_get("red", $v) ; 375 ok 44, countRecords($db1) == 3 ; 376 undef $db1; 427 ok 50, my $db1 = new BerkeleyDB::Btree -Filename => $Dfile, 436 ok 51, ! $db1->db_get("red", $v) ; 439 ok 53, countRecords($db1) [all...] |
H A D | join.t | 35 ok 1, my $db1 = tie %hash1, 'BerkeleyDB::Hash', 42 eval '$cursor = $db1->db_join() ;' ; 46 eval '$cursor = $db1->db_join([]) ;' ; 50 eval '$cursor = $db1->db_join({}) ;' ; 53 eval '$cursor = $db1->db_join(\1) ;' ; 59 eval '$cursor = $db1->db_join($a, $b) ;' ; 83 ok 11, my $db1 = tie %hash1, 'BerkeleyDB::Hash', 109 ok 14, addData($db1, qw( apple Convenience 140 ok 19, my $cursor1 = $db1->db_join([$cursor2]) ; 166 ok 26, $cursor1 = $db1 [all...] |
H A D | strict.t | 27 ok 3, my $db1 = tie %hash, 'BerkeleyDB::Hash', -Filename => $Dfile, 31 ok 4, $db1->db_close() == 0 ; 50 ok 9, my $db1 = tie %hash, 'BerkeleyDB::Hash', -Filename => $Dfile, 58 undef $db1 ;
|
/macosx-10.10/BerkeleyDB-21/db/test/scr031/src/ |
H A D | server.c | 46 DB *db1, *db2; /* Table handles. */ variable 82 if ((ret = db_create(&db1, dbenv, 0)) != 0) { 86 db1->set_errfile(db1, stderr); 87 if ((ret = db1->open(db1, NULL, 89 (ret = db1->truncate(db1, NULL, NULL, 0)) != 0) { 108 if ((ret = db1->close(db1, [all...] |
/macosx-10.10/BerkeleyDB-21/db/test/ |
H A D | test022.tcl | 40 set db1 [eval {berkdb_open -create \ 42 error_check_good db1_open [is_valid_db $db1] TRUE 49 set db1_order [$db1 is_byteswapped] 58 error_check_good db1_close [$db1 close] 0
|
H A D | rep007.tcl | 116 set db1 [berkdb_open_noerr -env $masterenv -auto_commit $dbname] 121 $db1 $db2 $masterdir/$dbname $clientdir/$dbname] 0 123 $db1 $db3 $masterdir/$dbname $clientdir2/$dbname] 0 124 error_check_good db1_close [$db1 close] 0 141 set db1 [berkdb_open_noerr -env $masterenv -auto_commit $dbname] 142 error_check_good dbopen [is_valid_db $db1] TRUE 144 set c [$db1 cursor -txn $txn] 145 error_check_good db_cursor [is_valid_cursor $c $db1] TRUE 154 error_check_good db1_close [$db1 close] 0 167 set db1 [berkdb_open_noer [all...] |
H A D | rpc004.tcl | 56 set db1 [eval {berkdb_open -auto_commit -create -btree \ 58 error_check_good dbopen [is_valid_db $db1] TRUE 70 set ret [$db1 put -txn $txn $key $data] 72 set ret [$db1 get -txn $txn $key] 77 error_check_good db1_close [$db1 close] 0
|
H A D | env004.tcl | 61 set db1 [eval {berkdb_open -create \ 63 error_check_good dbopen1 [is_valid_db $db1] TRUE 74 error_check_good db_close1 [$db1 close] 0 81 set db1 [berkdb_open -env $e datafile1.db] 82 error_check_good dbopen1 [is_valid_db $db1] TRUE 91 error_check_good db_close1 [$db1 close] 0
|
H A D | txn013.tcl | 32 set db1 [berkdb_open_noerr \ 46 error_check_good txn1_env1 [$db1 put -txn $txn1 $key $data] 0 51 catch {$db1 put -txn $txn2 $key $data} res 57 catch {$db1 get -txn $txn2 $key} res 63 catch {$db1 del -txn $txn2 $key} res 71 error_check_good db1_close [$db1 close] 0
|
H A D | test089.tcl | 47 set db1 [eval {berkdb_open -env $env -create \ 49 error_check_good dbopen [is_valid_db $db1] TRUE 68 set ret [eval {$db1 put} \ 70 error_check_good put:$db1 $ret 0 75 error_check_good close:$db1 [$db1 close] 0 89 set db1 [eval {berkdb_open_noerr -env $env -create \ 91 error_check_good dbopen [is_valid_db $db1] TRUE 94 set dbcr [$db1 cursor] 95 error_check_good dbcursor [is_valid_cursor $dbcr $db1] TRU [all...] |
H A D | test123.tcl | 49 set db1 [eval {berkdb_open}\ 52 set curs1 [eval {$db1 cursor} -update -txn $txn] 69 $db1 close
|
H A D | rep023.tcl | 125 set db1 [eval {berkdb_open_noerr -env $masterenv1 -auto_commit \ 127 error_check_good dbopen [is_valid_db $db1] TRUE 141 eval rep_test $method $masterenv1 $db1 $niter 0 0 0 0 $largs 150 $db1 $db2 $masterdir/$testfile1 $masterdir/$testfile2] 0 157 eval rep_test $method $masterenv1 $db1 $niter $niter 0 0 0 $largs 161 error_check_good db1 [$db1 close] 0
|
H A D | rep062.tcl | 190 set db1 [eval {berkdb_open} -env $masterenv -auto_commit \ 192 error_check_good db1open [is_valid_db $db1] TRUE 204 $masterenv $db1 $nentries $start $start 0 0 $args1 217 error_check_good db1_close [$db1 close] 0 223 set db1 [eval {berkdb_open} -env $masterenv -auto_commit \ 225 error_check_good db1open [is_valid_db $db1] TRUE 263 $masterenv $db1 $entries $start $start 0 0 $largs 277 error_check_good db1_close [$db1 close] 0
|
H A D | rep075.tcl | 143 set db1 [eval {berkdb_open_noerr -env $masterenv -auto_commit \ 145 error_check_good dbopen [is_valid_db $db1] TRUE 149 eval rep_test $method $masterenv $db1 $niter 0 0 0 0 $largs 170 error_check_good put [$db1 put -txn $txn1 $key $data] 0 182 $db1 close 244 $db1 close 280 $db1 close 325 set origdb1 $db1 374 $db1 close 465 set db1 [eva [all...] |
H A D | rep010.tcl | 107 set db1 [eval {berkdb_open_noerr -create} $omethod -auto_commit \ 117 [eval $db1 put -txn $t $i [chop_data $method data$i]] 0 126 [$db1 get -get_both -txn $t $i [pad_data $method data$i]] 128 [$db1 put -txn $t $i [chop_data $method newdata$i]] 0 136 error_check_good db_put [$db1 put -txn $t $i abort$i] 0 146 error_check_good db_put [$db1 put -txn $t $i data$i] 0 153 error_check_good db1_close [$db1 close] 0
|
H A D | t106script.tcl | 29 set db1 [berkdb_open \ 31 error_check_good db1_open [is_valid_db $db1] TRUE 65 error_check_good db1_put [eval {$db1 put} $ctxn\ 74 set ret [catch {$db1 close} res] 99 set db1 [berkdb_open \ 101 error_check_good db1_open [is_valid_db $db1] TRUE 146 error_check_good db1_put [eval {$db1 put} $ctxn\ 155 set ret [catch {$db1 close} res] 177 set db1 [eval {berkdb_open \ 179 error_check_good db1_open:$pid [is_valid_db $db1] TRU [all...] |
H A D | rep044.tcl | 162 set db1 [eval {berkdb_open_noerr -env $menv1 -auto_commit \ 164 error_check_good dbopen [is_valid_db $db1] TRUE 180 if [catch {eval {$db1 put}\ 187 error_check_good close_handle [$db1 close] 0 188 set db1 [eval {berkdb_open_noerr \ 205 error_check_good db_close [$db1 close] 0
|
H A D | rep036.tcl | 185 set db1 [eval {berkdb_open_noerr -env $env1 -rdonly $testfile}] 189 $db1 $db2 $masterdir/$testfile $clientdir/$testfile] 0 190 error_check_good db1_close [$db1 close] 0
|
/macosx-10.10/BerkeleyDB-21/db/test/scr015/ |
H A D | TestLogc.cpp | 37 Db *db1 = new Db(env, 0); local 38 db1->open(NULL, "first.db", NULL, DB_BTREE, DB_CREATE, 0); 41 db1->put(NULL, key, data, 0); 44 db1->put(NULL, key, data, 0); 45 db1->close(0);
|
/macosx-10.10/Security-57031.1.35/securityd/tests/ |
H A D | testblobs.cpp | 41 DbTester db1(ss, "/tmp/one", NULL, 60, true); 44 // encode db1, purge it, decode it again 46 ss.encodeDb(db1, dbBlob); 47 DbHandle db1a = ss.decodeDb(db1.dbId, &nullCred, dbBlob); 48 ss.releaseDb(db1); 49 if (db1 == db1a) 53 assert(savedParams.idleTimeout == db1.params.idleTimeout); 54 assert(savedParams.lockOnSleep == db1.params.lockOnSleep); 59 ss.getDbParameters(db1, savedParams); 65 // open db1 [all...] |
/macosx-10.10/bind9-45.101/bind9/lib/dns/tests/ |
H A D | dbversion_test.c | 56 static dns_db_t *db1 = NULL, *db2 = NULL; variable 63 dns_rdataclass_in, 0, NULL, &db1); 65 dns_db_newversion(db1, &v1); 76 dns_db_closeversion(db1, &v1, ISC_FALSE); 79 if (db1 != NULL) { 80 dns_db_detach(&db1); 81 ATF_REQUIRE_EQ(db1, NULL); 110 dns_db_attachversion(db1, VERSION(callback), &v); 115 dns_db_closeversion(db1, &v, ISC_FALSE); 154 dns_db_closeversion(db1, VERSION [all...] |
/macosx-10.10/tcl-105/tcl_ext/mk4tcl/metakit/tcl/tests/ |
H A D | commit.test | 190 mk::file open db1 $g 191 mk::file aside db0 db1 195 mk::file close db1 ;# will autocommit 198 mk::file open db1 $g -readonly 200 mk::file aside db1 db2 201 mk::file aside db0 db1 204 mk::file commit db1 206 mk::file close db1 215 mk::file open db1 $g -readonly 216 mk::file aside db0 db1 [all...] |