- logf(LOG_DEBUG,"calling search");
- rc=zebra_search_RPN (zh, odr_input, query, "nameless", &hits);
- logf(LOG_DEBUG,"search returned %d",rc);
- if (rc)
- printf("search returned %d",rc);
- if (hits != expectedhits)
- {
- printf( "FAIL: Test %d (line %d):\n"
- "got %d hits, expected %d\n"
- "in '%s'\n",
- thistest, lineno,hits, expectedhits, qry);
- logf( LOG_FATAL, "FAIL: Test %d (line %d): got %d hits, expected %d\n",
- thistest, lineno, hits,expectedhits);
- exit(1);
- }
-
- zebra_end_trans (zh);
- yaz_pqf_destroy(parser);
- odr_destroy (odr_input);
- logf(LOG_LOG,"Test %d ok",thistest);
-}