Lines Matching refs:TestBasename
43 static void TestBasename(const char* in, const char* expected_out, int expected_rc, in TestBasename() function
69 TestBasename("", ".", 1, NULL, 0, 0); in TEST()
70 TestBasename("", ".", -1, buf, 0, ERANGE); in TEST()
71 TestBasename("", ".", -1, buf, 1, ERANGE); in TEST()
72 TestBasename("", ".", 1, buf, 2, 0); in TEST()
73 TestBasename("", ".", 1, buf, sizeof(buf), 0); in TEST()
74 TestBasename("/usr/lib", "lib", 3, buf, sizeof(buf), 0); in TEST()
75 TestBasename("/usr/", "usr", 3, buf, sizeof(buf), 0); in TEST()
76 TestBasename("usr", "usr", 3, buf, sizeof(buf), 0); in TEST()
77 TestBasename("/", "/", 1, buf, sizeof(buf), 0); in TEST()
78 TestBasename(".", ".", 1, buf, sizeof(buf), 0); in TEST()
79 TestBasename("..", "..", 2, buf, sizeof(buf), 0); in TEST()