Lines Matching defs:tst
534 init_test_common(test_t *tst, char *testname, char *watchfile, int nprep, int nclean, int event, int want, int ispoll)
536 memset(tst, 0, sizeof(test_t));
537 tst->t_testname = testname;
538 tst->t_watchfile = watchfile;
539 tst->t_n_prep_actions = nprep;
540 tst->t_n_cleanup_actions = nclean;
541 tst->t_want_event = (want > 0);
544 tst->t_is_poll_test = 1;
545 tst->t_union.tu_pollevents = (short)event;
549 EV_SET(&tst->t_union.tu_kev, 0, event, EV_ADD | EV_ENABLE, 0, 0, NULL);
550 tst->t_nbytes = want;
552 EV_SET(&tst->t_union.tu_kev, 0, EVFILT_VNODE, EV_ADD | EV_ENABLE, event, 0, NULL);
565 init_test(test_t *tst, char *testname, char *watchfile, int nprep, int nclean, int event, int want)
567 init_test_common(tst, testname, watchfile, nprep, nclean, event, want, 0);
574 init_poll_test(test_t *tst, char *testname, char *watchfile, int nprep, int nclean, int event, int want)
576 init_test_common(tst, testname, watchfile, nprep, nclean, event, want, 1);