Lines Matching refs:TestDirname
22 static void TestDirname(const char* in, const char* expected_out) { in TestDirname() function
32 TestDirname(nullptr, "."); in TEST()
33 TestDirname("", "."); in TEST()
34 TestDirname("/usr/lib", "/usr"); in TEST()
35 TestDirname("/usr/", "/"); in TEST()
36 TestDirname("usr", "."); in TEST()
37 TestDirname(".", "."); in TEST()
38 TestDirname("..", "."); in TEST()
39 TestDirname("/", "/"); in TEST()
54 static void TestDirname(const char* in, const char* expected_out, int expected_rc, in TestDirname() function
88 TestDirname("", ".", 1, nullptr, 0, 0); in TEST()
89 TestDirname("", ".", -1, buf, 0, ERANGE); in TEST()
90 TestDirname("", ".", -1, buf, 1, ERANGE); in TEST()
91 TestDirname("", ".", 1, buf, 2, 0); in TEST()
92 TestDirname("/usr/lib", "/usr", 4, buf, sizeof(buf), 0); in TEST()
93 TestDirname("/usr/", "/", 1, buf, sizeof(buf), 0); in TEST()
94 TestDirname("usr", ".", 1, buf, sizeof(buf), 0); in TEST()
95 TestDirname(".", ".", 1, buf, sizeof(buf), 0); in TEST()
96 TestDirname("..", ".", 1, buf, sizeof(buf), 0); in TEST()