show which files we fail to create in the casetable test
authorAndrew Tridgell <tridge@samba.org>
Thu, 13 Mar 2003 04:36:32 +0000 (04:36 +0000)
committerAndrew Tridgell <tridge@samba.org>
Thu, 13 Mar 2003 04:36:32 +0000 (04:36 +0000)
(This used to be commit d40e3747cfa2994349aa84568f7b79457341a058)

source3/torture/utable.c

index d8a1557dbb792cb8e0c9e8d0bdddb5a3d1fc6647..74d5f164c09a2fad26f385d9f4884f2c4122feab 100644 (file)
@@ -141,7 +141,7 @@ BOOL torture_casetable(int dummy)
 
                if (c == '.' || c == '\\') continue;
 
-               printf("%04x\n", c);
+               printf("%04x (%c)\n", c, isprint(c)?c:'.');
 
                fname = form_name(c);
                fnum = cli_nt_create_full(cli, fname, 
@@ -150,7 +150,10 @@ BOOL torture_casetable(int dummy)
                                          FILE_SHARE_NONE,
                                          FILE_OPEN_IF, 0);
 
-               if (fnum == -1) continue;
+               if (fnum == -1) {
+                       printf("Failed to create file with char %04x\n", c);
+                       continue;
+               }
 
                size = 0;