diff options
author | Stefan Metzmacher <metze@samba.org> | 2009-11-18 08:12:48 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2009-11-18 08:24:13 +0100 |
commit | c2a29967ea0395460583edbbb91d04f897fee81d (patch) | |
tree | bd0dd47f828ef1e6d1ede20a650787ef6628192c /source4/torture | |
parent | 77f335042b01fcef0bbe09e1070528c00b523063 (diff) | |
download | samba-c2a29967ea0395460583edbbb91d04f897fee81d.tar.gz samba-c2a29967ea0395460583edbbb91d04f897fee81d.tar.bz2 samba-c2a29967ea0395460583edbbb91d04f897fee81d.zip |
SMB2-LOCK: make use of torture_assert_*()
This is needed in order to mark tests as known failures.
metze
Diffstat (limited to 'source4/torture')
-rw-r--r-- | source4/torture/smb2/lock.c | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/source4/torture/smb2/lock.c b/source4/torture/smb2/lock.c index 211578b5d6..4308ff983c 100644 --- a/source4/torture/smb2/lock.c +++ b/source4/torture/smb2/lock.c @@ -32,20 +32,14 @@ #define TARGET_IS_W2K8(_tctx) (torture_setting_bool(_tctx, "w2k8", false)) #define CHECK_STATUS(status, correct) do { \ - if (!NT_STATUS_EQUAL(status, correct)) { \ - printf("(%s) Incorrect status %s - should be %s\n", \ - __location__, nt_errstr(status), nt_errstr(correct)); \ - ret = false; \ - goto done; \ - }} while (0) + const char *_cmt = "(" __location__ ")"; \ + torture_assert_ntstatus_equal_goto(torture,status,correct,ret,done,_cmt); \ +} while (0) #define CHECK_VALUE(v, correct) do { \ - if ((v) != (correct)) { \ - printf("(%s) Incorrect value %s=%d - should be %d\n", \ - __location__, #v, v, correct); \ - ret = false; \ - goto done; \ - }} while (0) + const char *_cmt = "(" __location__ ")"; \ + torture_assert_int_equal_goto(torture,v,correct,ret,done,_cmt); \ +} while (0) static bool test_valid_request(struct torture_context *torture, struct smb2_tree *tree) { |