ref: refs/heads/ma-misc
commit fb153ed21efa4b08d6d432e05240f5dd37667d41
Author: Michael Andres
Date: Tue Sep 29 13:43:59 2009 +0200
update testcase
---
tests/zypp/Selectable_test.cc | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/tests/zypp/Selectable_test.cc b/tests/zypp/Selectable_test.cc
index 5c80d5f..a878f42 100644
--- a/tests/zypp/Selectable_test.cc
+++ b/tests/zypp/Selectable_test.cc
@@ -10,12 +10,12 @@ static TestSetup test;
BOOST_AUTO_TEST_CASE(testcase_init)
{
- zypp::base::LogControl::instance().logToStdErr();
+// zypp::base::LogControl::instance().logToStdErr();
test.loadTestcaseRepos( TESTS_SRC_DIR"/data/TCSelectable" );
-/* dumpRange( USR, test.pool().knownRepositoriesBegin(),
- test.pool().knownRepositoriesEnd() ) << endl;
- USR << "pool: " << test.pool() << endl;*/
+// dumpRange( USR, test.pool().knownRepositoriesBegin(),
+// test.pool().knownRepositoriesEnd() ) << endl;
+// USR << "pool: " << test.pool() << endl;
}
/////////////////////////////////////////////////////////////////////////////
@@ -35,6 +35,7 @@ BOOST_AUTO_TEST_CASE(candiadate)
// }
BOOST_CHECK_EQUAL( s->candidateObj()->repoInfo().alias(), "RepoMID" );
BOOST_CHECK_EQUAL( s->candidateObj()->edition(), Edition("0-1") );
+ BOOST_CHECK_EQUAL( s->candidateObj()->arch(), Arch_i586 );
// no updateCandidate due to low version
BOOST_CHECK_EQUAL( s->updateCandidateObj(), PoolItem() );
}
--
To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org
For additional commands, e-mail: zypp-commit+help@opensuse.org