1 /* This file is part of the YAZ toolkit.
2 * Copyright (C) Index Data
3 * See the file LICENSE for details.
14 #include <yaz/tpath.h>
20 YAZ_CHECK(yaz_filepath_resolve("test_filepath", ".", 0, fullpath));
21 YAZ_CHECK(strcmp(fullpath, "./test_filepath") == 0);
22 YAZ_CHECK(!yaz_filepath_resolve("test_filepath1", ".", 0, fullpath));
23 YAZ_CHECK(!yaz_filepath_resolve("test_filepath", "bogus", 0, fullpath));
24 YAZ_CHECK(yaz_filepath_resolve("test_filepath", "bogus:.", 0, fullpath));
27 int main (int argc, char **argv)
29 YAZ_CHECK_INIT(argc, argv);
36 * c-file-style: "Stroustrup"
37 * indent-tabs-mode: nil
39 * vim: shiftwidth=4 tabstop=8 expandtab