]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
minor bug fixes to smbtorture
authorAndrew Tridgell <tridge@samba.org>
Wed, 22 Aug 2001 03:15:33 +0000 (03:15 +0000)
committerAndrew Tridgell <tridge@samba.org>
Wed, 22 Aug 2001 03:15:33 +0000 (03:15 +0000)
(This used to be commit 7724243fe71dbf0783ea6e081e40d6916ac45c0d)

source3/torture/torture.c

index fe0c0db5a0402a095077042415fba1155a2045d3..9483f25ad0fb828a404c4f3cabe048a5b998c156 100644 (file)
@@ -2067,6 +2067,10 @@ static BOOL run_trans2test(int dummy)
        cli_unlink(&cli, fname);
        fnum = cli_open(&cli, fname, 
                        O_RDWR | O_CREAT | O_TRUNC, DENY_NONE);
+       if (fnum == -1) {
+               printf("open of %s failed (%s)\n", fname, cli_errstr(&cli));
+               return False;
+       }
        cli_close(&cli, fnum);
 
        if (!cli_qpathinfo(&cli, fname, &c_time, &a_time, &m_time, &size, NULL)) {
@@ -2190,9 +2194,7 @@ static BOOL run_w2ktest(int dummy)
                        O_RDWR | O_CREAT , DENY_NONE);
 
        for (level = 1004; level < 1040; level++) {
-               if (!new_trans(&cli, fnum, level)) {
-                       correct = False;
-               }
+               new_trans(&cli, fnum, level);
        }
 
        cli_close(&cli, fnum);