2 * Copyright (C) 2005-2006, Index Data ApS
3 * See the file LICENSE for details.
5 * $Id: tst_tpath.c,v 1.1 2006-06-08 10:26:10 adam Exp $
18 static void tst_tpath(void)
22 YAZ_CHECK(!yaz_filepath_resolve("etc", 0, 0, fullpath));
23 YAZ_CHECK(!yaz_filepath_resolve("etc", "", 0, fullpath)); /* bug #606 */
24 YAZ_CHECK(!yaz_filepath_resolve("etc", ".", 0, fullpath));
25 YAZ_CHECK(!yaz_filepath_resolve("does_not_exist", "", 0, fullpath));
26 YAZ_CHECK(!yaz_filepath_resolve("does_not_exist", ".", 0, fullpath));
27 YAZ_CHECK(yaz_filepath_resolve("tst_tpath", 0, 0, fullpath));
28 YAZ_CHECK(yaz_filepath_resolve("tst_tpath", "", 0, fullpath));
29 YAZ_CHECK(yaz_filepath_resolve("tst_tpath", ".", 0, fullpath));
30 YAZ_CHECK(!yaz_filepath_resolve("tst_tpath", "unknown_dir", 0, fullpath));
31 YAZ_CHECK(yaz_filepath_resolve("tst_tpath", "unknown_dir:.", 0, fullpath));
32 YAZ_CHECK(yaz_filepath_resolve("tst_tpath", "unknown_dir:", 0, fullpath));
33 YAZ_CHECK(!yaz_filepath_resolve("tst_tpath", "unknown_dir:c:", 0, fullpath));
34 YAZ_CHECK(!yaz_filepath_resolve("tst_tpath", "unknown_dir:c:\\other", 0, fullpath));
37 int main(int argc, char **argv)
39 YAZ_CHECK_INIT(argc, argv);
47 * indent-tabs-mode: nil
49 * vim: shiftwidth=4 tabstop=8 expandtab