From 420aac75385d8992bfa5145041604a5efbb126a5 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Wed, 10 Mar 2010 12:54:17 +0100 Subject: s4-smbtorture: check for non existing value under version key in RPC-WINREG. Guenther --- source4/torture/rpc/winreg.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source4/torture/rpc') 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"); } -- cgit