summaryrefslogtreecommitdiff
path: root/source4/torture
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2012-04-18 11:43:12 +0200
committerVolker Lendecke <vl@samba.org>2012-04-18 13:42:12 +0200
commit8e41c2f81ceb7cccad888c9cd6a459c79c48dc9e (patch)
tree7c3964873b56ab64421b5557e6aed7813af71e4a /source4/torture
parent536c4a41a173beb9f58aa15cc612c115f240d979 (diff)
downloadsamba-8e41c2f81ceb7cccad888c9cd6a459c79c48dc9e.tar.gz
samba-8e41c2f81ceb7cccad888c9cd6a459c79c48dc9e.tar.bz2
samba-8e41c2f81ceb7cccad888c9cd6a459c79c48dc9e.zip
s4-torture: Make notify a suite
Diffstat (limited to 'source4/torture')
-rw-r--r--source4/torture/raw/notify.c15
-rw-r--r--source4/torture/raw/raw.c2
2 files changed, 13 insertions, 4 deletions
diff --git a/source4/torture/raw/notify.c b/source4/torture/raw/notify.c
index 402974cb66..cac4b46e07 100644
--- a/source4/torture/raw/notify.c
+++ b/source4/torture/raw/notify.c
@@ -1694,9 +1694,9 @@ static bool test_notify_alignment(struct smbcli_state *cli,
/*
basic testing of change notify
*/
-bool torture_raw_notify(struct torture_context *torture,
- struct smbcli_state *cli,
- struct smbcli_state *cli2)
+static bool test_raw_notify_all(struct torture_context *torture,
+ struct smbcli_state *cli,
+ struct smbcli_state *cli2)
{
bool ret = true;
@@ -1724,3 +1724,12 @@ bool torture_raw_notify(struct torture_context *torture,
smbcli_deltree(cli->tree, BASEDIR);
return ret;
}
+
+struct torture_suite *torture_raw_notify(TALLOC_CTX *mem_ctx)
+{
+ struct torture_suite *suite = torture_suite_create(mem_ctx, "notify");
+
+ torture_suite_add_2smb_test(suite, "all", test_raw_notify_all);
+
+ return suite;
+}
diff --git a/source4/torture/raw/raw.c b/source4/torture/raw/raw.c
index 88cb1c59a4..39698dc15e 100644
--- a/source4/torture/raw/raw.c
+++ b/source4/torture/raw/raw.c
@@ -47,7 +47,7 @@ NTSTATUS torture_raw_init(void)
torture_suite_add_1smb_test(suite, "mkdir", torture_raw_mkdir);
torture_suite_add_suite(suite, torture_raw_oplock(suite));
torture_suite_add_1smb_test(suite, "hold-oplock", torture_hold_oplock);
- torture_suite_add_2smb_test(suite, "notify", torture_raw_notify);
+ torture_suite_add_suite(suite, torture_raw_notify(suite));
torture_suite_add_1smb_test(suite, "mux", torture_raw_mux);
torture_suite_add_1smb_test(suite, "ioctl", torture_raw_ioctl);
torture_suite_add_1smb_test(suite, "chkpath", torture_raw_chkpath);