/*
test setting up two change notify requests on one handle
*/
-static bool test_notify_double(struct smbcli_state *cli, TALLOC_CTX *mem_ctx)
+static bool test_notify_double(struct torture_context *mem_ctx,
+ struct smbcli_state *cli)
{
bool ret = true;
NTSTATUS status;
printf("TESTING CHANGE NOTIFY TWICE ON ONE DIRECTORY\n");
+ if (!torture_setup_dir(cli, BASEDIR)) {
+ return false;
+ }
/*
get a handle on the directory
*/
done:
smb_raw_exit(cli->session);
+ smbcli_deltree(cli->tree, BASEDIR);
return ret;
}
return false;
}
- ret &= test_notify_double(cli, torture);
ret &= test_notify_tree(cli, torture);
ret &= test_notify_overflow(cli, torture);
ret &= test_notify_basedir(cli, torture);
torture_suite_add_1smb_test(suite, "exit", test_notify_exit);
torture_suite_add_1smb_test(suite, "ulogoff", test_notify_ulogoff);
torture_suite_add_1smb_test(suite, "tcp_dis", test_notify_tcp_dis);
+ torture_suite_add_1smb_test(suite, "double", test_notify_double);
torture_suite_add_2smb_test(suite, "all", test_raw_notify_all);
return suite;