diff options
author | Jeremy Allison <jra@samba.org> | 2009-04-22 06:46:42 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2009-04-22 06:46:42 -0700 |
commit | 502f47c7c07b8075fb28a8591acd1e43f7708f54 (patch) | |
tree | e49e9c4a5f8f4f5faef07e1db87934b262d7bad0 /source3/torture | |
parent | 8bc88aae5d44e0a6bc6157745edc3a83bd740ff7 (diff) | |
download | samba-502f47c7c07b8075fb28a8591acd1e43f7708f54.tar.gz samba-502f47c7c07b8075fb28a8591acd1e43f7708f54.tar.bz2 samba-502f47c7c07b8075fb28a8591acd1e43f7708f54.zip |
Make cli_chkpath async.
Jeremy
Diffstat (limited to 'source3/torture')
-rw-r--r-- | source3/torture/torture.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source3/torture/torture.c b/source3/torture/torture.c index b0cf33ecaf..c6efa803fa 100644 --- a/source3/torture/torture.c +++ b/source3/torture/torture.c @@ -4601,17 +4601,17 @@ bool torture_chkpath_test(int dummy) } cli_close(cli, fnum); - if (!cli_chkpath(cli, "\\chkpath.dir")) { + if (!NT_STATUS_IS_OK(cli_chkpath(cli, "\\chkpath.dir"))) { printf("chkpath1 failed: %s\n", cli_errstr(cli)); ret = False; } - if (!cli_chkpath(cli, "\\chkpath.dir\\dir2")) { + if (!NT_STATUS_IS_OK(cli_chkpath(cli, "\\chkpath.dir\\dir2"))) { printf("chkpath2 failed: %s\n", cli_errstr(cli)); ret = False; } - if (!cli_chkpath(cli, "\\chkpath.dir\\foo.txt")) { + if (!NT_STATUS_IS_OK(cli_chkpath(cli, "\\chkpath.dir\\foo.txt"))) { ret = check_error(__LINE__, cli, ERRDOS, ERRbadpath, NT_STATUS_NOT_A_DIRECTORY); } else { @@ -4619,7 +4619,7 @@ bool torture_chkpath_test(int dummy) ret = False; } - if (!cli_chkpath(cli, "\\chkpath.dir\\bar.txt")) { + if (!NT_STATUS_IS_OK(cli_chkpath(cli, "\\chkpath.dir\\bar.txt"))) { ret = check_error(__LINE__, cli, ERRDOS, ERRbadfile, NT_STATUS_OBJECT_NAME_NOT_FOUND); } else { @@ -4627,7 +4627,7 @@ bool torture_chkpath_test(int dummy) ret = False; } - if (!cli_chkpath(cli, "\\chkpath.dir\\dirxx\\bar.txt")) { + if (!NT_STATUS_IS_OK(cli_chkpath(cli, "\\chkpath.dir\\dirxx\\bar.txt"))) { ret = check_error(__LINE__, cli, ERRDOS, ERRbadpath, NT_STATUS_OBJECT_PATH_NOT_FOUND); } else { |