summaryrefslogtreecommitdiff
path: root/source3/utils/torture.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/utils/torture.c')
-rw-r--r--source3/utils/torture.c14
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);
}