update testcase
authorMichael Andres <ma@suse.de>
Tue, 29 Sep 2009 11:43:59 +0000 (13:43 +0200)
committerMichael Andres <ma@suse.de>
Tue, 29 Sep 2009 11:43:59 +0000 (13:43 +0200)
tests/zypp/Selectable_test.cc

index 5c80d5f..a878f42 100644 (file)
@@ -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() );
 }