s4:torture: avoid reporting error on failure of smb2.acls tests
authorGregor Beck <gbeck@sernet.de>
Tue, 28 Feb 2012 11:46:41 +0000 (12:46 +0100)
committerStefan Metzmacher <metze@samba.org>
Tue, 6 Mar 2012 22:53:06 +0000 (23:53 +0100)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
source4/torture/smb2/acls.c

index fa6c002da7b6f32190b58973805f2a80b3b2d06a..37052c66c12b7e4ddac49a2895e80716bcb8b734 100644 (file)
 
 #define CHECK_SECURITY_DESCRIPTOR(_sd1, _sd2) do { \
        if (!security_descriptor_equal(_sd1, _sd2)) { \
-               torture_warning(tctx, "%s: security descriptors don't match!\n", __location__); \
+               torture_warning(tctx, "security descriptors don't match!\n"); \
                torture_warning(tctx, "got:\n"); \
                NDR_PRINT_DEBUG(security_descriptor, _sd1); \
                torture_warning(tctx, "expected:\n"); \
                NDR_PRINT_DEBUG(security_descriptor, _sd2); \
+               torture_result(tctx, TORTURE_FAIL, \
+                              "%s: security descriptors don't match!\n", \
+                              __location__); \
                ret = false; \
        } \
 } while (0)