X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=test%2Ftest_pquery.c;h=9c711ddd4854415fb2c7b18abbe4281e940e35f5;hb=1f966d166ff89011da3e8ca2fa143f017921ec57;hp=313df6bcf350c6d027de9989e82610b8c915fd3f;hpb=2b4785b39a2bbb4affd77fb9e24aaabc0b2dd069;p=yaz-moved-to-github.git 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;