Lines Matching refs:tc
219 static int testit (struct test_case_struct *tc);
351 testit (struct test_case_struct *tc) in testit() argument
360 if (tc->env) in testit()
361 setenv ("var", tc->env, 1); in testit()
365 if (tc->ifs) in testit()
366 setenv ("IFS", tc->ifs, 1); in testit()
375 printf ("info: test %d (%s): ", ++tests, tc->words); in testit()
377 struct support_next_to_fault words = at_page_end (tc->words); in testit()
379 if (tc->flags & WRDE_APPEND) in testit()
382 if (wordexp ("pre1 pre2", &we, tc->flags & ~WRDE_APPEND) != 0) in testit()
388 retval = wordexp (words.buffer, &we, tc->flags); in testit()
390 if (tc->flags & WRDE_DOOFFS) in testit()
393 if (retval != tc->retval || (retval == 0 && we.we_wordc != tc->wordc)) in testit()
406 || strcmp (tc->wordv[i], we.we_wordv[i+start_offs]) != 0) in testit()
417 tc->words, tc->retval, tc->wordc); in testit()