summaryrefslogtreecommitdiff
path: root/testprogs
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-09-19 10:56:35 +0200
committerJelmer Vernooij <jelmer@samba.org>2008-09-19 10:56:35 +0200
commit62b5f1886d06edb94bbb799c07470803cbd9988b (patch)
tree183a0e1e993a05d1e33ec6e9defb00a4f921c416 /testprogs
parentb5e8d8d22ae599778e889a8df5a18c07c9180af5 (diff)
downloadsamba-62b5f1886d06edb94bbb799c07470803cbd9988b.tar.gz
samba-62b5f1886d06edb94bbb799c07470803cbd9988b.tar.bz2
samba-62b5f1886d06edb94bbb799c07470803cbd9988b.zip
Make sure modify operations succeed.
Diffstat (limited to 'testprogs')
-rw-r--r--testprogs/ejs/samba3sam.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/testprogs/ejs/samba3sam.js b/testprogs/ejs/samba3sam.js
index e5639b8ec8..244074743d 100644
--- a/testprogs/ejs/samba3sam.js
+++ b/testprogs/ejs/samba3sam.js
@@ -914,6 +914,10 @@ replace: badPwdCount
badPwdCount: 4
";
ok = ldb.modify(ldif);
+ if (ok.error != 0) {
+ println(ok.errstr);
+ assert(ok.error == 0);
+ }
/* Check in mapped db */
attrs = new Array("description", "badPwdCount", "nextRid");
res = ldb.search("", dn, ldb.SCOPE_BASE, attrs);
@@ -992,6 +996,10 @@ replace: description
description: test
";
ok = ldb.modify(ldif);
+ if (ok.error != 0) {
+ println(ok.errstr);
+ assert(ok.error == 0);
+ }
/* Check in mapped db */
attrs = new Array("revision", "description");
res = ldb.search("", dn, ldb.SCOPE_BASE, attrs);