Lines Matching refs:error
25 const char *npath = NULL, *error = NULL;
26 test_assert(t_normpath_to("README.md", cwd, &npath, &error) == 0);
32 const char *npath = NULL, *error = NULL;
33 test_assert(t_normpath_to("/", "/", &npath, &error) == 0);
36 test_assert(t_normpath_to(cwd, cwd, &npath, &error) == 0);
53 const char *error;
54 test_assert_idx(t_normpath_to("../", npath, &npath, &error) == 0, l);
61 const char *npath = NULL, *error = NULL;
62 test_assert(t_normpath_to(".", cwd, &npath, &error) == 0);
65 test_assert(t_normpath_to("./", cwd, &npath, &error) == 0);
68 test_assert(t_normpath_to(".////", cwd, &npath, &error) == 0);
74 const char *npath = NULL, *error = NULL;
76 test_assert(t_normpath_to("nonexistent", cwd, &npath, &error) == 0);
78 test_assert(t_realpath_to("nonexistent", cwd, &npath, &error) == -1);
79 test_assert(error != NULL);
85 const char *npath = NULL, *error = NULL;
86 test_assert(t_normpath_to(rel_path, tmpdir, &npath, &error) == 0);
89 test_assert(t_normpath_to("..", tmpdir, &npath, &error) == 0);
92 test_assert(t_normpath_to("../", tmpdir, &npath, &error) == 0);
95 test_assert(t_normpath_to("../.", tmpdir, &npath, &error) == 0);
101 const char *old_dir, *npath = NULL, *error = NULL;
102 test_assert(t_realpath_to(link1, "/", &npath, &error) == 0);
107 "/", &npath, &error) == 0);
111 if (t_get_working_dir(&old_dir, &error) < 0)
112 i_fatal("t_get_working_dir() failed: %s", error);
116 &npath, &error) == 0);
123 const char *npath = NULL, *error = NULL;
126 "/", &npath, &error) == 0);
132 const char *npath = NULL, *error = NULL;
134 test_assert(t_realpath_to(link2, "/", &npath, &error) == -1);
136 test_assert(error != NULL);
144 const char *norm = NULL, *error = NULL;
145 test_assert(t_normpath_to("../../bin", "/usr///lib/", &norm, &error) == 0);
238 const char *error;
240 if (unlink_directory(tmpdir, UNLINK_DIRECTORY_FLAG_RMDIR, &error) < 0)
241 i_error("unlink_directory() failed: %s", error);
246 const char *error;
247 test_assert(t_get_working_dir(&cwd, &error) == 0);