/*
basic testing of change notifies followed by a ulogoff
*/
-static bool test_notify_ulogoff(struct torture_context *tctx)
+static bool test_notify_ulogoff(struct torture_context *tctx,
+ struct smbcli_state *cli1)
{
bool ret = true;
NTSTATUS status;
printf("TESTING CHANGE NOTIFY FOLLOWED BY ULOGOFF\n");
+ if (!torture_setup_dir(cli1, BASEDIR)) {
+ return false;
+ }
+
if (!torture_open_connection(&cli, tctx, 0)) {
return false;
}
done:
torture_close_connection(cli);
+ smbcli_deltree(cli1->tree, BASEDIR);
return ret;
}
return false;
}
- ret &= test_notify_ulogoff(torture);
ret &= test_notify_tcp_dis(torture);
ret &= test_notify_double(cli, torture);
ret &= test_notify_tree(cli, torture);
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_1smb_test(suite, "ulogoff", test_notify_ulogoff);
torture_suite_add_2smb_test(suite, "all", test_raw_notify_all);
return suite;