Lines Matching defs:tc
12 * tc() - Run a specific test case.
25 static void tc(struct kunit *test, char *src, int count, int expected,
87 * tc() uses a destination buffer of size 6 and needs at
89 * overflow). This means we should only call tc() with
92 * the buffer size in tc().
95 /* tc(test, src, count, expected, chars, terminator, pad) */
96 tc(test, "a", 0, -E2BIG, 0, 0, 0);
97 tc(test, "", 0, -E2BIG, 0, 0, 0);
99 tc(test, "a", 1, -E2BIG, 0, 1, 0);
100 tc(test, "", 1, 0, 0, 1, 0);
102 tc(test, "ab", 2, -E2BIG, 1, 1, 0);
103 tc(test, "a", 2, 1, 1, 1, 0);
104 tc(test, "", 2, 0, 0, 1, 1);
106 tc(test, "abc", 3, -E2BIG, 2, 1, 0);
107 tc(test, "ab", 3, 2, 2, 1, 0);
108 tc(test, "a", 3, 1, 1, 1, 1);
109 tc(test, "", 3, 0, 0, 1, 2);
111 tc(test, "abcd", 4, -E2BIG, 3, 1, 0);
112 tc(test, "abc", 4, 3, 3, 1, 0);
113 tc(test, "ab", 4, 2, 2, 1, 1);
114 tc(test, "a", 4, 1, 1, 1, 2);
115 tc(test, "", 4, 0, 0, 1, 3);