Lines Matching defs:test
30 struct torture_test *test)
40 fn = test->fn;
54 struct torture_test *test;
59 test = talloc(tcase, struct torture_test);
61 test->name = talloc_strdup(test, name);
62 test->description = NULL;
63 test->run = wrap_simple_1smb2_test;
64 test->fn = run;
65 test->dangerous = false;
67 DLIST_ADD_END(tcase->tests, test, struct torture_test *);
69 return test;
75 struct torture_test *test)
92 fn = test->fn;
96 /* the test may already closed some of the connections */
109 struct torture_test *test;
114 test = talloc(tcase, struct torture_test);
116 test->name = talloc_strdup(test, name);
117 test->description = NULL;
118 test->run = wrap_simple_2smb2_test;
119 test->fn = run;
120 test->dangerous = false;
122 DLIST_ADD_END(tcase->tests, test, struct torture_test *);
124 return test;