From: Josef Reidinger Date: Thu, 20 Mar 2008 15:31:52 +0000 (+0000) Subject: change testsuite to expect enum from checkIfToRefresh and correct test it X-Git-Tag: 6.6.0~1215 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7ccc97453b0ff732ce0f8db3308aae2658826c64;p=platform%2Fupstream%2Flibzypp.git change testsuite to expect enum from checkIfToRefresh and correct test it --- diff --git a/tests/zypp/RepoManager_test.cc b/tests/zypp/RepoManager_test.cc index f5c448f25..34664fa73 100644 --- a/tests/zypp/RepoManager_test.cc +++ b/tests/zypp/RepoManager_test.cc @@ -112,9 +112,9 @@ BOOST_AUTO_TEST_CASE(repomanager_test) BOOST_CHECK_MESSAGE( manager.isCached(repo), "Repo should be cached now" ); // Metadata are up to date - SEC << endl - << manager.checkIfToRefreshMetadata(repo, *repo.baseUrlsBegin()) << endl; - BOOST_CHECK_MESSAGE( !manager.checkIfToRefreshMetadata(repo, *repo.baseUrlsBegin()), "Metadata should be up to date" ); + RepoManager::RefreshCheckStatus ref_stat = manager.checkIfToRefreshMetadata(repo, *repo.baseUrlsBegin()); + SEC << endl << ref_stat << endl; + BOOST_CHECK_MESSAGE( ref_stat== RepoManager::REPO_UP_TO_DATE || ref_stat == RepoManager::REPO_CHECK_DELAYED, "Metadata should be up to date" ); // the solv file should exists now Pathname base = (opts.repoCachePath + repo.alias());