s4:torture/smb2: don't check the lease break connection against samba3
authorStefan Metzmacher <metze@samba.org>
Wed, 12 Nov 2014 08:15:58 +0000 (09:15 +0100)
committerStefan Metzmacher <metze@samba.org>
Thu, 27 Nov 2014 15:45:05 +0000 (16:45 +0100)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source4/torture/smb2/lease.c

index d10dcc55435bddef1f6dfa68c223d2db22d463eb..2c5cbd0e51e17da6c6ddd4e2e8cba79d02a0004e 100644 (file)
@@ -25,6 +25,7 @@
 #include "libcli/smb2/smb2_calls.h"
 #include "torture/torture.h"
 #include "torture/smb2/proto.h"
+#include "torture/util.h"
 #include "libcli/smb/smbXcli_base.h"
 
 #define CHECK_VAL(v, correct) do { \
@@ -463,8 +464,10 @@ static struct {
        do {                                                            \
                _CHECK_BREAK_INFO(__oldstate, __state, __key);          \
                CHECK_VAL(break_info.lease_break.new_epoch, __epoch);   \
-               CHECK_VAL((uintptr_t)break_info.lease_transport, \
-                         (uintptr_t)__transport);      \
+               if (!TARGET_IS_SAMBA3(tctx)) {                          \
+                       CHECK_VAL((uintptr_t)break_info.lease_transport, \
+                                 (uintptr_t)__transport);              \
+               } \
        } while(0)
 
 static void torture_lease_break_callback(struct smb2_request *req)