summaryrefslogtreecommitdiff
path: root/source4/torture
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2010-03-10 12:54:17 +0100
committerGünther Deschner <gd@samba.org>2010-03-10 16:12:22 +0100
commit420aac75385d8992bfa5145041604a5efbb126a5 (patch)
tree2052d73bff015aa7e942125e8a191caea313b7c7 /source4/torture
parent89c785c47aa0fceba148297116e863f46941bd42 (diff)
downloadsamba-420aac75385d8992bfa5145041604a5efbb126a5.tar.gz
samba-420aac75385d8992bfa5145041604a5efbb126a5.tar.bz2
samba-420aac75385d8992bfa5145041604a5efbb126a5.zip
s4-smbtorture: check for non existing value under version key in RPC-WINREG.
Guenther
Diffstat (limited to 'source4/torture')
-rw-r--r--source4/torture/rpc/winreg.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/torture/rpc/winreg.c b/source4/torture/rpc/winreg.c
index 7368b2d12b..8fb1b1654f 100644
--- a/source4/torture/rpc/winreg.c
+++ b/source4/torture/rpc/winreg.c
@@ -1960,6 +1960,8 @@ static bool test_Open(struct torture_context *tctx, struct dcerpc_pipe *p,
#endif
torture_assert(tctx, test_QueryValue_full(p, tctx, &newhandle, VALUE_CURRENT_VERSION, true),
"failed to query current version");
+ torture_assert(tctx, test_QueryValue_full(p, tctx, &newhandle, "IDoNotExist", false),
+ "failed to query current version");
torture_assert(tctx, test_CloseKey(p, tctx, &newhandle),
"failed to close current version key");
}