diff options
author | Andrew Bartlett <abartlet@samba.org> | 2009-04-21 15:19:50 +0200 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2009-04-21 15:19:50 +0200 |
commit | 9b33766fbb13fc2ab82e209607db37f5888ddc2b (patch) | |
tree | c767a5ad36db87beb2d4076845f9bd48d22a8cd6 /source3/torture | |
parent | 47ec66bda3e4264f93f142a3903052c4bc6dbec8 (diff) | |
parent | 2eff2de2f81374483df99757046f1d5ee4050155 (diff) | |
download | samba-9b33766fbb13fc2ab82e209607db37f5888ddc2b.tar.gz samba-9b33766fbb13fc2ab82e209607db37f5888ddc2b.tar.bz2 samba-9b33766fbb13fc2ab82e209607db37f5888ddc2b.zip |
Merge branch 'master' of ssh://git.samba.org/data/git/samba into abartlet-devel
Diffstat (limited to 'source3/torture')
-rw-r--r-- | source3/torture/mangle_test.c | 2 | ||||
-rw-r--r-- | source3/torture/torture.c | 10 | ||||
-rw-r--r-- | source3/torture/utable.c | 2 |
3 files changed, 7 insertions, 7 deletions
diff --git a/source3/torture/mangle_test.c b/source3/torture/mangle_test.c index 00457719a8..525a1eb3c3 100644 --- a/source3/torture/mangle_test.c +++ b/source3/torture/mangle_test.c @@ -180,7 +180,7 @@ bool torture_mangle(int dummy) cli_unlink(cli, "\\mangle_test\\*"); cli_rmdir(cli, "\\mangle_test"); - if (!cli_mkdir(cli, "\\mangle_test")) { + if (!NT_STATUS_IS_OK(cli_mkdir(cli, "\\mangle_test"))) { printf("ERROR: Failed to make directory\n"); return False; } diff --git a/source3/torture/torture.c b/source3/torture/torture.c index 07945fccf1..0328cfe545 100644 --- a/source3/torture/torture.c +++ b/source3/torture/torture.c @@ -2625,7 +2625,7 @@ static bool run_trans2test(int dummy) /* check if the server updates the directory modification time when creating a new file */ - if (!cli_mkdir(cli, dname)) { + if (!NT_STATUS_IS_OK(cli_mkdir(cli, dname))) { printf("ERROR: mkdir failed (%s)\n", cli_errstr(cli)); correct = False; } @@ -4584,12 +4584,12 @@ bool torture_chkpath_test(int dummy) cli_unlink(cli, "\\chkpath.dir\\*"); cli_rmdir(cli, "\\chkpath.dir"); - if (!cli_mkdir(cli, "\\chkpath.dir")) { + if (!NT_STATUS_IS_OK(cli_mkdir(cli, "\\chkpath.dir"))) { printf("mkdir1 failed : %s\n", cli_errstr(cli)); return False; } - if (!cli_mkdir(cli, "\\chkpath.dir\\dir2")) { + if (!NT_STATUS_IS_OK(cli_mkdir(cli, "\\chkpath.dir\\dir2"))) { printf("mkdir2 failed : %s\n", cli_errstr(cli)); return False; } @@ -4801,7 +4801,7 @@ static bool run_dirtest1(int dummy) for (i=0;i<1000;i++) { fstring fname; slprintf(fname, sizeof(fname), "\\LISTDIR\\d%d", i); - if (!cli_mkdir(cli, fname)) { + if (!NT_STATUS_IS_OK(cli_mkdir(cli, fname))) { fprintf(stderr,"Failed to open %s\n", fname); return False; } @@ -5279,7 +5279,7 @@ static bool run_uid_regression_test(int dummy) cli->vuid = old_vuid; /* Try an operation. */ - if (!cli_mkdir(cli, "\\uid_reg_test")) { + if (!NT_STATUS_IS_OK(cli_mkdir(cli, "\\uid_reg_test"))) { /* We expect bad uid. */ if (!check_error(__LINE__, cli, ERRSRV, ERRbaduid, NT_STATUS_NO_SUCH_USER)) { diff --git a/source3/torture/utable.c b/source3/torture/utable.c index e36b0388c4..aaa763a2a3 100644 --- a/source3/torture/utable.c +++ b/source3/torture/utable.c @@ -132,7 +132,7 @@ bool torture_casetable(int dummy) cli_unlink(cli, "\\utable\\*"); cli_rmdir(cli, "\\utable"); - if (!cli_mkdir(cli, "\\utable")) { + if (!NT_STATUS_IS_OK(cli_mkdir(cli, "\\utable"))) { printf("Failed to create utable directory!\n"); return False; } |