s4-smbtorture: skip wbcChangeUserPassword test when no oldpass is set in environment.
authorGünther Deschner <gd@samba.org>
Thu, 8 Jul 2010 13:58:12 +0000 (15:58 +0200)
committerGünther Deschner <gd@samba.org>
Thu, 8 Jul 2010 13:59:44 +0000 (15:59 +0200)
Guenther

nsswitch/libwbclient/tests/wbclient.c

index f3f45be561760435a2afa04090d48c63bfcbdd85..e2b3794d06f97381c49b1abccd2ddd894eb8b84d 100644 (file)
@@ -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);