summaryrefslogtreecommitdiff
path: root/source3/torture
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2009-06-10 11:58:00 -0700
committerJeremy Allison <jra@samba.org>2009-06-10 11:58:00 -0700
commitdc5c7b7f98345621f4cf1b9992ebbe9144e14ebb (patch)
tree749446aa31baf51f8d9eb0d811d33bd5ef118654 /source3/torture
parent29b78b33d3c2a392ef47183c0b455efa7838bb73 (diff)
downloadsamba-dc5c7b7f98345621f4cf1b9992ebbe9144e14ebb.tar.gz
samba-dc5c7b7f98345621f4cf1b9992ebbe9144e14ebb.tar.bz2
samba-dc5c7b7f98345621f4cf1b9992ebbe9144e14ebb.zip
Make ctemp async. Fix the test to pass against W2K3.
Jeremy.
Diffstat (limited to 'source3/torture')
-rw-r--r--source3/torture/torture.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source3/torture/torture.c b/source3/torture/torture.c
index 056b74adea..baa8a15da4 100644
--- a/source3/torture/torture.c
+++ b/source3/torture/torture.c
@@ -3908,8 +3908,7 @@ static bool run_opentest(int dummy)
printf("testing ctemp\n");
- fnum1 = cli_ctemp(cli1, "\\", &tmp_path);
- if (fnum1 == (uint16_t)-1) {
+ if (!NT_STATUS_IS_OK(cli_ctemp(cli1, talloc_tos(), "\\", &fnum1, &tmp_path))) {
printf("ctemp failed (%s)\n", cli_errstr(cli1));
return False;
}