mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +03:00
minor bug fixes to smbtorture
(This used to be commit 7724243fe71dbf0783ea6e081e40d6916ac45c0d)
This commit is contained in:
parent
0309090f1e
commit
d81e123998
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user