Lines Matching refs:homedir
29 TEST_IMPL(homedir) { in TEST_IMPL() argument
30 char homedir[PATHMAX]; in TEST_IMPL() local
35 len = sizeof homedir; in TEST_IMPL()
36 homedir[0] = '\0'; in TEST_IMPL()
37 ASSERT_OK(strlen(homedir)); in TEST_IMPL()
38 r = uv_os_homedir(homedir, &len); in TEST_IMPL()
40 ASSERT_EQ(strlen(homedir), len); in TEST_IMPL()
42 ASSERT_EQ(homedir[len], '\0'); in TEST_IMPL()
45 if (len == 3 && homedir[1] == ':') in TEST_IMPL()
46 ASSERT_EQ(homedir[2], '\\'); in TEST_IMPL()
48 ASSERT_NE(homedir[len - 1], '\\'); in TEST_IMPL()
51 ASSERT_EQ(homedir[0], '/'); in TEST_IMPL()
53 ASSERT_NE(homedir[len - 1], '/'); in TEST_IMPL()
58 r = uv_os_homedir(homedir, &len); in TEST_IMPL()
65 r = uv_os_homedir(homedir, NULL); in TEST_IMPL()
68 r = uv_os_homedir(homedir, &len); in TEST_IMPL()
75 len = sizeof homedir; in TEST_IMPL()
76 r = uv_os_homedir(homedir, &len); in TEST_IMPL()