summaryrefslogtreecommitdiff
path: root/source3/torture
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2002-02-21 04:27:16 +0000
committerAndrew Tridgell <tridge@samba.org>2002-02-21 04:27:16 +0000
commit1f6d48f56def3d6c9c697814a820b3d98af80391 (patch)
treea48e49d72ff06c954460ca8d32d464c0147b926b /source3/torture
parent93ea4825972c80957946ac5ef722853a95ccb31c (diff)
downloadsamba-1f6d48f56def3d6c9c697814a820b3d98af80391.tar.gz
samba-1f6d48f56def3d6c9c697814a820b3d98af80391.tar.bz2
samba-1f6d48f56def3d6c9c697814a820b3d98af80391.zip
added a cli_qfilename() test to the trans2 tests
(This used to be commit 81fb8845e5c9a321f113258a737ce5c6e799e505)
Diffstat (limited to 'source3/torture')
-rw-r--r--source3/torture/torture.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/source3/torture/torture.c b/source3/torture/torture.c
index ccd604a7a7..479b2dd238 100644
--- a/source3/torture/torture.c
+++ b/source3/torture/torture.c
@@ -1854,6 +1854,7 @@ static BOOL run_trans2test(int dummy)
char *fname = "\\trans2.tst";
char *dname = "\\trans2";
char *fname2 = "\\trans2\\trans2.tst";
+ pstring pname;
BOOL correct = True;
printf("starting trans2 test\n");
@@ -1870,6 +1871,18 @@ static BOOL run_trans2test(int dummy)
printf("ERROR: qfileinfo failed (%s)\n", cli_errstr(&cli));
correct = False;
}
+
+ if (!cli_qfilename(&cli, fnum, pname)) {
+ printf("ERROR: qfilename failed (%s)\n", cli_errstr(&cli));
+ correct = False;
+ }
+
+ if (strcmp(pname, fname)) {
+ printf("qfilename gave different name? [%s] [%s]\n",
+ fname, pname);
+ correct = False;
+ }
+
cli_close(&cli, fnum);
sleep(2);