mirror of
https://github.com/samba-team/samba.git
synced 2025-11-12 04:23:49 +03:00
r8488: after discussions with simo, moved to a full OO interface, so you don't need to keep
a 'db' variable around. The ldb object knows what it is connected to. Added a simple ldb testsuite in testprogs/ldb.js
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
adae47c829
commit
cf35818648
@@ -131,10 +131,10 @@ function setup_ldb(ldif, dbname, subobj)
|
||||
data = data + extra;
|
||||
data = substitute_var(data, subobj);
|
||||
|
||||
var db = ldb.connect(dbfile);
|
||||
assert(db != undefined);
|
||||
var ok = ldb.connect(dbfile);
|
||||
assert(ok);
|
||||
|
||||
ok = ldb.add(db, data);
|
||||
ok = ldb.add(data);
|
||||
assert(ok);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user