r20311: Check one more samba3 error path for t2mkdir
authorVolker Lendecke <vlendec@samba.org>
Thu, 21 Dec 2006 22:16:16 +0000 (22:16 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:29:37 +0000 (14:29 -0500)
(This used to be commit 0f018cca6f70cb44ab436b3a66edb01e57351eaf)

source4/torture/raw/mkdir.c

index be21ff8ea3d22af017ba54e2c713e1d03eec47d6..6d9bcbcdba045977a39016a734473e7ced7d36f4 100644 (file)
@@ -106,6 +106,12 @@ static BOOL test_mkdir(struct smbcli_state *cli, TALLOC_CTX *mem_ctx)
        status = smb_raw_rmdir(cli->tree, &rd);
        CHECK_STATUS(status, NT_STATUS_OK);
 
+       printf("testing t2mkdir bad path\n");
+       md.t2mkdir.in.path = talloc_asprintf(mem_ctx, "%s\\bad_path\\bad_path",
+                                            BASEDIR);
+       status = smb_raw_mkdir(cli->tree, &md);
+       CHECK_STATUS(status, NT_STATUS_OBJECT_PATH_NOT_FOUND);
+
        printf("testing t2mkdir with EAs\n");
 
        /* with EAs */