From: Andrew Tridgell Date: Wed, 22 Aug 2001 03:15:33 +0000 (+0000) Subject: minor bug fixes to smbtorture X-Git-Tag: samba-4.0.0alpha6~801^2~17555 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d81e1239981fa87f86f285fc78370d91e64367a9;p=thirdparty%2Fsamba.git minor bug fixes to smbtorture (This used to be commit 7724243fe71dbf0783ea6e081e40d6916ac45c0d) --- diff --git a/source3/torture/torture.c b/source3/torture/torture.c index fe0c0db5a04..9483f25ad0f 100644 --- a/source3/torture/torture.c +++ b/source3/torture/torture.c @@ -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);