summaryrefslogtreecommitdiffstats
path: root/testprogs
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2007-01-02 03:36:02 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:35:50 -0500
commit42fcb90e7239ee8edb9b8fd3aeca7d7089952d0e (patch)
treeb9b676a9f08f21816b33bc3dbfefced2b3e1ec8b /testprogs
parent811397151b9ef03dd656522342829ecf19f6ba62 (diff)
downloadsamba-42fcb90e7239ee8edb9b8fd3aeca7d7089952d0e.tar.gz
samba-42fcb90e7239ee8edb9b8fd3aeca7d7089952d0e.tar.xz
samba-42fcb90e7239ee8edb9b8fd3aeca7d7089952d0e.zip
r20457: Print more information before asserting
(This used to be commit 0b7a5b7284f7820e5b2f48f40e85830243189b58)
Diffstat (limited to 'testprogs')
-rwxr-xr-xtestprogs/ejs/samba3sam.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/testprogs/ejs/samba3sam.js b/testprogs/ejs/samba3sam.js
index 076d434360..4c6f14b7b1 100755
--- a/testprogs/ejs/samba3sam.js
+++ b/testprogs/ejs/samba3sam.js
@@ -114,7 +114,6 @@ showInAdvancedViewOnly: TRUE
println(ldb.errstring());
assert(ok);
}
- assert(ok);
println("Checking for existence of record (local)");
/* TODO: This record must be searched in the local database, which is currently only supported for base searches
@@ -288,7 +287,10 @@ description: y
ldif = substitute_var(ldif, s4);
assert(ldif != undefined);
var ok = ldb.add(ldif);
- assert(ok);
+ if (!ok) {
+ println(ldb.errstring());
+ assert(ok);
+ }
/* Add a set of remote records */
var ldif = "