summaryrefslogtreecommitdiff
path: root/source3/torture
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-10-23 22:37:16 +0200
committerVolker Lendecke <vl@samba.org>2010-10-24 11:39:30 +0200
commitc095809c0464cd174e0993d8c32434d6f3733342 (patch)
treefa252edc75dc3c39c8668232b85fc52a5e11ba8f /source3/torture
parentd864b1bace0038b86cb393ca811dcce2e938bebd (diff)
downloadsamba-c095809c0464cd174e0993d8c32434d6f3733342.tar.gz
samba-c095809c0464cd174e0993d8c32434d6f3733342.tar.bz2
samba-c095809c0464cd174e0993d8c32434d6f3733342.zip
s3: Convert cli_qfileinfo_basic to cli_qfileinfo
Diffstat (limited to 'source3/torture')
-rw-r--r--source3/torture/torture.c17
-rw-r--r--source3/torture/utable.c5
2 files changed, 13 insertions, 9 deletions
diff --git a/source3/torture/torture.c b/source3/torture/torture.c
index 39e0dda4e0..143120bf00 100644
--- a/source3/torture/torture.c
+++ b/source3/torture/torture.c
@@ -915,8 +915,9 @@ static bool run_readwritelarge(int dummy)
cli_write(cli1, fnum1, 0, buf, 0, sizeof(buf));
- if (!cli_qfileinfo_basic(cli1, fnum1, NULL, &fsize, NULL, NULL, NULL,
- NULL, NULL)) {
+ if (!NT_STATUS_IS_OK(cli_qfileinfo_basic(
+ cli1, fnum1, NULL, &fsize, NULL, NULL,
+ NULL, NULL, NULL))) {
printf("qfileinfo failed (%s)\n", cli_errstr(cli1));
correct = False;
}
@@ -949,8 +950,9 @@ static bool run_readwritelarge(int dummy)
cli_smbwrite(cli1, fnum1, buf, 0, sizeof(buf));
- if (!cli_qfileinfo_basic(cli1, fnum1, NULL, &fsize, NULL, NULL, NULL,
- NULL, NULL)) {
+ if (!NT_STATUS_IS_OK(cli_qfileinfo_basic(
+ cli1, fnum1, NULL, &fsize, NULL, NULL,
+ NULL, NULL, NULL))) {
printf("qfileinfo failed (%s)\n", cli_errstr(cli1));
correct = False;
}
@@ -2977,9 +2979,10 @@ static bool run_trans2test(int dummy)
cli_unlink(cli, fname, aSYSTEM | aHIDDEN);
cli_open(cli, fname,
O_RDWR | O_CREAT | O_TRUNC, DENY_NONE, &fnum);
- if (!cli_qfileinfo_basic(cli, fnum, NULL, &size, &c_time_ts,
- &a_time_ts, &w_time_ts,
- &m_time_ts, NULL)) {
+ if (!NT_STATUS_IS_OK(cli_qfileinfo_basic(
+ cli, fnum, NULL, &size, &c_time_ts,
+ &a_time_ts, &w_time_ts,
+ &m_time_ts, NULL))) {
printf("ERROR: qfileinfo failed (%s)\n", cli_errstr(cli));
correct = False;
}
diff --git a/source3/torture/utable.c b/source3/torture/utable.c
index 4162ecacfe..d537ad77c5 100644
--- a/source3/torture/utable.c
+++ b/source3/torture/utable.c
@@ -159,8 +159,9 @@ bool torture_casetable(int dummy)
size = 0;
- if (!cli_qfileinfo_basic(cli, fnum, NULL, &size,
- NULL, NULL, NULL, NULL, NULL)) {
+ if (!NT_STATUS_IS_OK(cli_qfileinfo_basic(
+ cli, fnum, NULL, &size,
+ NULL, NULL, NULL, NULL, NULL))) {
continue;
}