diff options
author | Andrew Tridgell <tridge@samba.org> | 2001-05-07 03:55:54 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2001-05-07 03:55:54 +0000 |
commit | 6056766247fc2e7206d6bb13ad1ac467663ac298 (patch) | |
tree | e20ebeed5bb331f747c9d5a0fbf6b07e601ec186 /source3/utils/torture.c | |
parent | fe6b398a79e6a8efaeef173dc4a41ff4a8ec3b33 (diff) | |
download | samba-6056766247fc2e7206d6bb13ad1ac467663ac298.tar.gz samba-6056766247fc2e7206d6bb13ad1ac467663ac298.tar.bz2 samba-6056766247fc2e7206d6bb13ad1ac467663ac298.zip |
merge some fixes from 2.2
(This used to be commit 7e57adf2a039cb5b6458496f9190c9c642645600)
Diffstat (limited to 'source3/utils/torture.c')
-rw-r--r-- | source3/utils/torture.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/source3/utils/torture.c b/source3/utils/torture.c index fe22b60a89..4e6789e6ae 100644 --- a/source3/utils/torture.c +++ b/source3/utils/torture.c @@ -2538,6 +2538,20 @@ static void run_opentest(int dummy) cli_unlink(&cli1, fname); + + printf("testing ctemp\n"); + { + char *tmp_path; + fnum1 = cli_ctemp(&cli1, "\\", &tmp_path); + if (fnum1 == -1) { + printf("ctemp failed (%s)\n", cli_errstr(&cli1)); + return; + } + printf("ctemp gave path %s\n", tmp_path); + cli_close(&cli1, fnum1); + cli_unlink(&cli1, tmp_path); + } + close_connection(&cli1); } |