From 309ad2b08f2964c30fd71af027b7c94f5d761e4a Mon Sep 17 00:00:00 2001 From: =?utf8?q?G=C3=BCnther=20Deschner?= Date: Thu, 8 Jul 2010 15:58:12 +0200 Subject: [PATCH] s4-smbtorture: skip wbcChangeUserPassword test when no oldpass is set in environment. Guenther --- nsswitch/libwbclient/tests/wbclient.c | 5 +++++ 1 file changed, 5 insertions(+) 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); -- 2.34.1