From 2c50346143b7a8ae184bd3699927cd3f36ce94af Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 14 Jun 2012 08:27:10 +0200 Subject: [PATCH] tests: update libxbp/find_pkg tests for new API changes. --- tests/libxbps/find_pkg/main.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/libxbps/find_pkg/main.c b/tests/libxbps/find_pkg/main.c index f7c0e42e..2793576b 100644 --- a/tests/libxbps/find_pkg/main.c +++ b/tests/libxbps/find_pkg/main.c @@ -47,12 +47,12 @@ ATF_TC_BODY(find_pkg_dict_installed_test, tc) xh.metadir = tcsdir; ATF_REQUIRE_EQ(xbps_init(&xh), 0); - dr = xbps_find_pkg_dict_installed("xbps", false); + dr = xbps_find_pkg_dict_installed(&xh, "xbps", false); ATF_REQUIRE_EQ(prop_object_type(dr), PROP_TYPE_DICTIONARY); prop_dictionary_get_cstring_nocopy(dr, "pkgver", &pkgver); ATF_REQUIRE_STREQ(pkgver, "xbps-0.14"); - xbps_end(); + xbps_end(&xh); } ATF_TC(find_virtualpkg_dict_installed_test); @@ -79,12 +79,12 @@ ATF_TC_BODY(find_virtualpkg_dict_installed_test, tc) xh.metadir = tcsdir; ATF_REQUIRE_EQ(xbps_init(&xh), 0); - dr = xbps_find_virtualpkg_dict_installed("xbps-src>=24", true); + dr = xbps_find_virtualpkg_dict_installed(&xh, "xbps-src>=24", true); ATF_REQUIRE_EQ(prop_object_type(dr), PROP_TYPE_DICTIONARY); prop_dictionary_get_cstring_nocopy(dr, "pkgver", &pkgver); ATF_REQUIRE_STREQ(pkgver, "xbps-src-git-20120312"); - xbps_end(); + xbps_end(&xh); } ATF_TP_ADD_TCS(tp)