Fix incorrect error messages:unsetting not setting.
authorRichard Sharpe <richard.sharpe@primarydata.com>
Thu, 27 Jul 2017 20:46:27 +0000 (13:46 -0700)
committerVolker Lendecke <vl@samba.org>
Fri, 28 Jul 2017 05:53:25 +0000 (07:53 +0200)
The error messages are wrong and could give testers the wrong idea.

Signed-off-by: Richard Sharpe <realrichardsharpe@gmail.com>
Reviewed-by: Volker Lendecke <vl@samba.org>
source4/torture/basic/delete.c

index 21af05c21b3cffeb698097cd3b7a7d1dc6331042..ed098e04287e91c4680656ab8c92149719db9582 100644 (file)
@@ -640,7 +640,7 @@ static bool deltest13(struct torture_context *tctx, struct smbcli_state *cli1, s
 
        torture_assert_ntstatus_ok(tctx, smbcli_nt_delete_on_close(cli2->tree, fnum2,
                                                       false), 
 
        torture_assert_ntstatus_ok(tctx, smbcli_nt_delete_on_close(cli2->tree, fnum2,
                                                       false), 
-                "setting delete_on_close on file failed !");
+                "unsetting delete_on_close on file failed !");
 
        correct &= check_delete_on_close(tctx, cli1, fnum1, fname, false, __location__);
        correct &= check_delete_on_close(tctx, cli2, fnum2, fname, false, __location__);
 
        correct &= check_delete_on_close(tctx, cli1, fnum1, fname, false, __location__);
        correct &= check_delete_on_close(tctx, cli2, fnum2, fname, false, __location__);
@@ -1807,7 +1807,7 @@ static bool deltest20(struct torture_context *tctx, struct smbcli_state *cli1, s
 
        status = smbcli_nt_delete_on_close(cli1->tree, dnum1, false);
        torture_assert_ntstatus_ok(tctx, status, 
 
        status = smbcli_nt_delete_on_close(cli1->tree, dnum1, false);
        torture_assert_ntstatus_ok(tctx, status, 
-                                       "setting delete_on_close on file failed !");
+                                       "unsetting delete_on_close on file failed !");
                
        {
                char *fullname;
                
        {
                char *fullname;