summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2013-02-28 10:12:42 +0100
committerJeremy Allison <jra@samba.org>2013-03-01 12:01:35 -0800
commit2c9d84b226e1a2f04bb03f5b00bceb77099bdeab (patch)
treeea0d51195ea8e6577678befe3382f8350f407262 /lib
parent04b1fa4112a3c76e84d640ab6c4808c7e971eec9 (diff)
downloadsamba-2c9d84b226e1a2f04bb03f5b00bceb77099bdeab.tar.gz
samba-2c9d84b226e1a2f04bb03f5b00bceb77099bdeab.tar.xz
samba-2c9d84b226e1a2f04bb03f5b00bceb77099bdeab.zip
tevent: use better names for the subtests
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/tevent/testsuite.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/lib/tevent/testsuite.c b/lib/tevent/testsuite.c
index 0f164aacc4..5c2f695f27 100644
--- a/lib/tevent/testsuite.c
+++ b/lib/tevent/testsuite.c
@@ -348,13 +348,20 @@ struct torture_suite *torture_local_event(TALLOC_CTX *mem_ctx)
int i;
for (i=0;list && list[i];i++) {
- torture_suite_add_simple_tcase_const(suite, list[i],
+ struct torture_suite *backend_suite;
+
+ backend_suite = torture_suite_create(mem_ctx, list[i]);
+
+ torture_suite_add_simple_tcase_const(backend_suite,
+ "context",
test_event_context,
(const void *)list[i]);
+
+ torture_suite_add_suite(suite, backend_suite);
}
#ifdef HAVE_PTHREAD
- torture_suite_add_simple_tcase_const(suite, "poll_mt_threaded",
+ torture_suite_add_simple_tcase_const(suite, "threaded_poll_mt",
test_event_context_threaded,
NULL);
#endif