summaryrefslogtreecommitdiff
path: root/source4/torture
diff options
context:
space:
mode:
Diffstat (limited to 'source4/torture')
-rw-r--r--source4/torture/basic/utable.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/source4/torture/basic/utable.c b/source4/torture/basic/utable.c
index d5b808244d..0b4569235d 100644
--- a/source4/torture/basic/utable.c
+++ b/source4/torture/basic/utable.c
@@ -148,6 +148,7 @@ bool torture_casetable(struct torture_context *tctx,
torture_comment(tctx, "%04x (%c)\n", c, isprint(c)?c:'.');
fname = form_name(c);
+ if (fname == NULL) continue;
fnum = smbcli_nt_create_full(cli->tree, fname, 0,
#if 0
SEC_RIGHT_MAXIMUM_ALLOWED,
@@ -158,9 +159,10 @@ bool torture_casetable(struct torture_context *tctx,
NTCREATEX_SHARE_ACCESS_NONE,
NTCREATEX_DISP_OPEN_IF, 0, 0);
- torture_assert(tctx, fnum != -1,
- talloc_asprintf(tctx,
- "Failed to create file with char %04x\n", c));
+ if (fnum == -1) {
+ torture_comment(tctx, "Failed to create file with char %04x\n", c);
+ continue;
+ }
size = 0;