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 | 7724243fe71dbf0783ea6e081e40d6916ac45c0d (patch) | |
tree | c77bb4082dad24084e6bc13d025f48e384b7a848 /source/torture | |
parent | 84998f1fceeef221101a4e332cf53d0e355c4ddf (diff) | |
download | samba-7724243fe71dbf0783ea6e081e40d6916ac45c0d.tar.gz samba-7724243fe71dbf0783ea6e081e40d6916ac45c0d.tar.xz samba-7724243fe71dbf0783ea6e081e40d6916ac45c0d.zip |
minor bug fixes to smbtorture
Diffstat (limited to 'source/torture')
-rw-r--r-- | source/torture/torture.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/source/torture/torture.c b/source/torture/torture.c index fe0c0db5a04..9483f25ad0f 100644 --- a/source/torture/torture.c +++ b/source/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); |