From 1f6d48f56def3d6c9c697814a820b3d98af80391 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 21 Feb 2002 04:27:16 +0000 Subject: added a cli_qfilename() test to the trans2 tests (This used to be commit 81fb8845e5c9a321f113258a737ce5c6e799e505) --- source3/torture/torture.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'source3') 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); -- cgit