1 /* This file is part of the YAZ toolkit.
2 * Copyright (C) 1995-2010 Index Data
3 * See the file LICENSE for details.
15 #include <yaz/tpath.h>
21 YAZ_CHECK(yaz_filepath_resolve("tst_filepath", ".", 0, fullpath));
22 YAZ_CHECK(strcmp(fullpath, "./tst_filepath") == 0);
23 YAZ_CHECK(!yaz_filepath_resolve("tst_filepath1", ".", 0, fullpath));
24 YAZ_CHECK(!yaz_filepath_resolve("tst_filepath", "bogus", 0, fullpath));
25 YAZ_CHECK(yaz_filepath_resolve("tst_filepath", "bogus:.", 0, fullpath));
28 int main (int argc, char **argv)
30 YAZ_CHECK_INIT(argc, argv);
37 * c-file-style: "Stroustrup"
38 * indent-tabs-mode: nil
40 * vim: shiftwidth=4 tabstop=8 expandtab