X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=test%2Ftest_pquery.c;h=9c711ddd4854415fb2c7b18abbe4281e940e35f5;hp=313df6bcf350c6d027de9989e82610b8c915fd3f;hb=7fbf3f2eceeb0978881992fbf1e77cd6fc3c4a9b;hpb=2b4785b39a2bbb4affd77fb9e24aaabc0b2dd069 diff --git a/test/test_pquery.c b/test/test_pquery.c index 313df6b..9c711dd 100644 --- a/test/test_pquery.c +++ b/test/test_pquery.c @@ -1,7 +1,10 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2010 Index Data + * Copyright (C) Index Data * See the file LICENSE for details. */ +#if HAVE_CONFIG_H +#include +#endif #include #include @@ -39,11 +42,11 @@ int expect_pqf(const char *pqf, const char *expect_pqf, int expect_error) else if (expect_error == YAZ_PQF_ERROR_NONE) { WRBUF wrbuf = wrbuf_alloc(); - + if (wrbuf) { yaz_rpnquery_to_wrbuf(wrbuf, rpn); - + if (!strcmp(wrbuf_cstr(wrbuf), expect_pqf)) { res = 1;