X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=test%2Ftst_filepath.c;fp=test%2Ftst_filepath.c;h=0000000000000000000000000000000000000000;hp=8abf0451e29dc0f9f03f4946fc44c4fe12101dcc;hb=3107ce3a34993d2f784387f227a50343fff83bbc;hpb=ed31c923f03ec124060972f5351b8b33e07a2e13 diff --git a/test/tst_filepath.c b/test/tst_filepath.c deleted file mode 100644 index 8abf045..0000000 --- a/test/tst_filepath.c +++ /dev/null @@ -1,42 +0,0 @@ -/* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2010 Index Data - * See the file LICENSE for details. - */ - -#if HAVE_CONFIG_H -#include -#endif - -#include -#include -#include -#include - -#include -#include - -void tst(void) -{ - char fullpath[1024]; - YAZ_CHECK(yaz_filepath_resolve("tst_filepath", ".", 0, fullpath)); - YAZ_CHECK(strcmp(fullpath, "./tst_filepath") == 0); - YAZ_CHECK(!yaz_filepath_resolve("tst_filepath1", ".", 0, fullpath)); - YAZ_CHECK(!yaz_filepath_resolve("tst_filepath", "bogus", 0, fullpath)); - YAZ_CHECK(yaz_filepath_resolve("tst_filepath", "bogus:.", 0, fullpath)); -} - -int main (int argc, char **argv) -{ - YAZ_CHECK_INIT(argc, argv); - tst(); - YAZ_CHECK_TERM; -} -/* - * Local variables: - * c-basic-offset: 4 - * c-file-style: "Stroustrup" - * indent-tabs-mode: nil - * End: - * vim: shiftwidth=4 tabstop=8 expandtab - */ -