From 309ad2b08f2964c30fd71af027b7c94f5d761e4a Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Thu, 8 Jul 2010 15:58:12 +0200 Subject: s4-smbtorture: skip wbcChangeUserPassword test when no oldpass is set in environment. Guenther --- nsswitch/libwbclient/tests/wbclient.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'nsswitch') diff --git a/nsswitch/libwbclient/tests/wbclient.c b/nsswitch/libwbclient/tests/wbclient.c index f3f45be561..e2b3794d06 100644 --- a/nsswitch/libwbclient/tests/wbclient.c +++ b/nsswitch/libwbclient/tests/wbclient.c @@ -601,6 +601,11 @@ static bool test_wbc_change_password(struct torture_context *tctx) struct wbcChangePasswordParams params; + if (oldpass == NULL) { + torture_skip(tctx, + "skipping wbcChangeUserPassword test as old password cannot be retrieved\n"); + } + ZERO_STRUCT(params); E_md4hash(oldpass, old_nt_hash); -- cgit