Lines Matching defs:tc
16 * tc() - Run a specific test case.
29 static int __init tc(char *src, int count, int expected,
117 * tc() uses a destination buffer of size 6 and needs at
119 * overflow). This means we should only call tc() with
122 * the buffer size in tc().
125 /* tc(src, count, expected, chars, terminator, pad) */
126 KSTM_CHECK_ZERO(tc("a", 0, -E2BIG, 0, 0, 0));
127 KSTM_CHECK_ZERO(tc("", 0, -E2BIG, 0, 0, 0));
129 KSTM_CHECK_ZERO(tc("a", 1, -E2BIG, 0, 1, 0));
130 KSTM_CHECK_ZERO(tc("", 1, 0, 0, 1, 0));
132 KSTM_CHECK_ZERO(tc("ab", 2, -E2BIG, 1, 1, 0));
133 KSTM_CHECK_ZERO(tc("a", 2, 1, 1, 1, 0));
134 KSTM_CHECK_ZERO(tc("", 2, 0, 0, 1, 1));
136 KSTM_CHECK_ZERO(tc("abc", 3, -E2BIG, 2, 1, 0));
137 KSTM_CHECK_ZERO(tc("ab", 3, 2, 2, 1, 0));
138 KSTM_CHECK_ZERO(tc("a", 3, 1, 1, 1, 1));
139 KSTM_CHECK_ZERO(tc("", 3, 0, 0, 1, 2));
141 KSTM_CHECK_ZERO(tc("abcd", 4, -E2BIG, 3, 1, 0));
142 KSTM_CHECK_ZERO(tc("abc", 4, 3, 3, 1, 0));
143 KSTM_CHECK_ZERO(tc("ab", 4, 2, 2, 1, 1));
144 KSTM_CHECK_ZERO(tc("a", 4, 1, 1, 1, 2));
145 KSTM_CHECK_ZERO(tc("", 4, 0, 0, 1, 3));