r13277: print a useful error message when test 17 fails
authorAndrew Tridgell <tridge@samba.org>
Wed, 1 Feb 2006 05:22:44 +0000 (05:22 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:51:41 +0000 (13:51 -0500)
(This used to be commit 70ad98b05136da0cdbd91b8374ac9709abfcadeb)

source4/torture/basic/delete.c

index 0c01561d2e1797fbebdf5c6ecf4311d944af5212..0980ae1d0da76899bf394d2767e78f4b5a436ab0 100644 (file)
@@ -1177,8 +1177,8 @@ BOOL torture_test_delete(void)
        /* See if the file is deleted - shouldn't be.... */
        fnum1 = smbcli_open(cli1->tree, fname, O_RDWR, DENY_NONE);
        if (fnum1 == -1) {
-               printf("(%s) open of %s failed (should succeed)\n", 
-                      __location__, fname);
+               printf("(%s) open of %s failed (should succeed) - %s\n", 
+                      __location__, fname, smbcli_errstr(cli1->tree));
                correct = False;
                goto fail;
        }