diff options
author | Andrew Tridgell <tridge@samba.org> | 2001-08-22 03:15:33 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2001-08-22 03:15:33 +0000 |
commit | d81e1239981fa87f86f285fc78370d91e64367a9 (patch) | |
tree | ad72d48ac634065a79494b94de1f93ee5fbb8b63 | |
parent | 0309090f1ebc0896f4aee2c454279bd49b184409 (diff) | |
download | samba-d81e1239981fa87f86f285fc78370d91e64367a9.tar.gz samba-d81e1239981fa87f86f285fc78370d91e64367a9.tar.bz2 samba-d81e1239981fa87f86f285fc78370d91e64367a9.zip |
minor bug fixes to smbtorture
(This used to be commit 7724243fe71dbf0783ea6e081e40d6916ac45c0d)
-rw-r--r-- | source3/torture/torture.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/source3/torture/torture.c b/source3/torture/torture.c index fe0c0db5a0..9483f25ad0 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); |