diff options
author | Jeremy Allison <jra@samba.org> | 2009-05-05 20:59:22 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2009-05-05 20:59:22 -0700 |
commit | 4cbd0c77e42627c76dda88af5326ef91415a652d (patch) | |
tree | 85fa13b4907088ada28d7b96a466d86f08f52dc9 /source3/torture | |
parent | 1db0b20d8a26fb60299d0ed7553d7a4847aee84f (diff) | |
download | samba-4cbd0c77e42627c76dda88af5326ef91415a652d.tar.gz samba-4cbd0c77e42627c76dda88af5326ef91415a652d.tar.bz2 samba-4cbd0c77e42627c76dda88af5326ef91415a652d.zip |
Make cli_getatr() 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 00e8266a22..bc7ac12a76 100644 --- a/source3/torture/torture.c +++ b/source3/torture/torture.c @@ -2471,7 +2471,7 @@ static bool run_attrtest(int dummy) cli_open(cli, fname, O_RDWR | O_CREAT | O_TRUNC, DENY_NONE, &fnum); cli_close(cli, fnum); - if (!cli_getatr(cli, fname, NULL, NULL, &t)) { + if (!NT_STATUS_IS_OK(cli_getatr(cli, fname, NULL, NULL, &t))) { printf("getatr failed (%s)\n", cli_errstr(cli)); correct = False; } @@ -2490,7 +2490,7 @@ static bool run_attrtest(int dummy) correct = True; } - if (!cli_getatr(cli, fname, NULL, NULL, &t)) { + if (!NT_STATUS_IS_OK(cli_getatr(cli, fname, NULL, NULL, &t))) { printf("getatr failed (%s)\n", cli_errstr(cli)); correct = True; } @@ -3796,7 +3796,7 @@ static bool run_opentest(int dummy) } /* Ensure size == 20. */ - if (!cli_getatr(cli1, fname, NULL, &fsize, NULL)) { + if (!NT_STATUS_IS_OK(cli_getatr(cli1, fname, NULL, &fsize, NULL))) { printf("(3) getatr failed (%s)\n", cli_errstr(cli1)); return False; } @@ -3819,7 +3819,7 @@ static bool run_opentest(int dummy) } /* Ensure size == 0. */ - if (!cli_getatr(cli1, fname, NULL, &fsize, NULL)) { + if (!NT_STATUS_IS_OK(cli_getatr(cli1, fname, NULL, &fsize, NULL))) { printf("(3) getatr failed (%s)\n", cli_errstr(cli1)); return False; } @@ -4285,7 +4285,7 @@ static bool run_openattrtest(int dummy) return False; } - if (!cli_getatr(cli1, fname, &attr, NULL, NULL)) { + if (!NT_STATUS_IS_OK(cli_getatr(cli1, fname, &attr, NULL, NULL))) { printf("getatr(2) failed (%s)\n", cli_errstr(cli1)); return False; } |