X-Git-Url: http://lists.indexdata.com/cgi-bin?a=blobdiff_plain;ds=sidebyside;f=src%2Ftest_filter_z3950_client.cpp;h=4675f85c84b0ddfbe259d45e65fc67ad90877b34;hb=219ffa015c0e35b03fae0788b0e8e6abcfde1a81;hp=018c97cf5b1cb41251b5db7951fc2603c633ef81;hpb=1e61b0aa05e2351e33d909f7503eaf936a2d9bb0;p=metaproxy-moved-to-github.git diff --git a/src/test_filter_z3950_client.cpp b/src/test_filter_z3950_client.cpp index 018c97c..4675f85 100644 --- a/src/test_filter_z3950_client.cpp +++ b/src/test_filter_z3950_client.cpp @@ -1,5 +1,5 @@ -/* $Id: test_filter_z3950_client.cpp,v 1.9 2006-06-10 14:29:13 adam Exp $ - Copyright (c) 2005-2006, Index Data. +/* $Id: test_filter_z3950_client.cpp,v 1.11 2007-04-13 09:57:51 adam Exp $ + Copyright (c) 2005-2007, Index Data. See the LICENSE file for details */ @@ -20,6 +20,7 @@ #include #include +#include using namespace boost::unit_test; namespace mp = metaproxy_1; @@ -135,8 +136,13 @@ BOOST_AUTO_UNIT_TEST( test_filter_z3950_client_4 ) const char *vhost = "localhost:9999"; if (vhost) - yaz_oi_set_string_oidval(&apdu->u.initRequest->otherInfo, - odr, VAL_PROXY, 1, vhost); + { + const int *oid_proxy = yaz_string_to_oid(yaz_oid_std(), + CLASS_USERINFO, + OID_STR_PROXY); + yaz_oi_set_string_oid(&apdu->u.initRequest->otherInfo, + odr, oid_proxy, 1, vhost); + } BOOST_CHECK(apdu); pack.request() = apdu;