diff options
author | Volker Lendecke <vl@samba.org> | 2012-04-18 12:42:13 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2012-04-18 13:42:13 +0200 |
commit | 07def3221e02fce95465217b83c65c76298e4e3d (patch) | |
tree | 6ee81702c9d3c417727a803c26bd089209d31d70 /source4/torture/raw | |
parent | f864b93b317b73dfc6b183f5ab59c7a23ce0e9ca (diff) | |
download | samba-07def3221e02fce95465217b83c65c76298e4e3d.tar.gz samba-07def3221e02fce95465217b83c65c76298e4e3d.tar.bz2 samba-07def3221e02fce95465217b83c65c76298e4e3d.zip |
s4-torture: Separate out the notify exit subtest
Diffstat (limited to 'source4/torture/raw')
-rw-r--r-- | source4/torture/raw/notify.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/source4/torture/raw/notify.c b/source4/torture/raw/notify.c index 02a211d4d8..f11c46ea49 100644 --- a/source4/torture/raw/notify.c +++ b/source4/torture/raw/notify.c @@ -945,7 +945,8 @@ done: /* basic testing of change notifies followed by a exit */ -static bool test_notify_exit(struct torture_context *tctx) +static bool test_notify_exit(struct torture_context *tctx, + struct smbcli_state *cli1) { bool ret = true; NTSTATUS status; @@ -957,6 +958,10 @@ static bool test_notify_exit(struct torture_context *tctx) printf("TESTING CHANGE NOTIFY FOLLOWED BY EXIT\n"); + if (!torture_setup_dir(cli1, BASEDIR)) { + return false; + } + if (!torture_open_connection(&cli, tctx, 0)) { return false; } @@ -1000,6 +1005,7 @@ static bool test_notify_exit(struct torture_context *tctx) done: torture_close_connection(cli); + smbcli_deltree(cli1->tree, BASEDIR); return ret; } @@ -1746,7 +1752,6 @@ static bool test_raw_notify_all(struct torture_context *torture, return false; } - ret &= test_notify_exit(torture); ret &= test_notify_ulogoff(torture); ret &= test_notify_tcp_dis(torture); ret &= test_notify_double(cli, torture); @@ -1772,6 +1777,7 @@ struct torture_suite *torture_raw_notify(TALLOC_CTX *mem_ctx) test_notify_mask_change); torture_suite_add_1smb_test(suite, "file", test_notify_file); torture_suite_add_1smb_test(suite, "tdis", test_notify_tdis); + torture_suite_add_1smb_test(suite, "exit", test_notify_exit); torture_suite_add_2smb_test(suite, "all", test_raw_notify_all); return suite; |