summaryrefslogtreecommitdiff
path: root/source3/torture/torture.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2001-08-22 03:15:33 +0000
committerAndrew Tridgell <tridge@samba.org>2001-08-22 03:15:33 +0000
commitd81e1239981fa87f86f285fc78370d91e64367a9 (patch)
treead72d48ac634065a79494b94de1f93ee5fbb8b63 /source3/torture/torture.c
parent0309090f1ebc0896f4aee2c454279bd49b184409 (diff)
downloadsamba-d81e1239981fa87f86f285fc78370d91e64367a9.tar.gz
samba-d81e1239981fa87f86f285fc78370d91e64367a9.tar.bz2
samba-d81e1239981fa87f86f285fc78370d91e64367a9.zip
minor bug fixes to smbtorture
(This used to be commit 7724243fe71dbf0783ea6e081e40d6916ac45c0d)
Diffstat (limited to 'source3/torture/torture.c')
-rw-r--r--source3/torture/torture.c8
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);