diff -r 6fb4d24d9df9 -r ee0de2b1872e dav/main.c --- a/dav/main.c Sat May 02 18:45:13 2015 +0200 +++ b/dav/main.c Sat May 02 18:52:04 2015 +0200 @@ -32,7 +32,6 @@ #include #include #include -#include #include #include #include @@ -51,8 +50,13 @@ // nothing } +//#define DO_THE_TEST +#include void test() { - + DavQLStatement *stmt = dav_parse_statement(S( + "get *,count(*) as count from /uap/House of Cards with depth = infinity")); + dav_debug_statement(stmt); + dav_free_statement(stmt); } int main(int argc, char **argv) { @@ -60,8 +64,9 @@ initGenericErrorDefaultFunc(&fnc); ctx = dav_context_new(); load_config(ctx); - //dav_add_namespace(ctx, "U", "http://www.uap-core.de/"); - //test(); +#ifdef DO_THE_TEST + test(); +#endif memcpy(ctx->http_proxy, get_http_proxy(), sizeof(Proxy)); memcpy(ctx->https_proxy, get_https_proxy(), sizeof(Proxy)); @@ -1090,6 +1095,7 @@ } dav_session_free(sn, properties); + return 0; } else { print_resource_error(sn, res->path); return -1;