- rework the testsuite after new boost in factory broke it.
[platform/upstream/libzypp.git] / tests / zypp / PublicKey_test.cc
index ac0b6b2..181b382 100644 (file)
@@ -235,7 +235,7 @@ char susekey[]=
 size_t _susekey_size=2173;
 size_t *susekey_size=&_susekey_size;
 
-void publickey_test()
+BOOST_AUTO_TEST_CASE(publickey_test)
 {
   BOOST_CHECK_THROW( zypp::PublicKey("nonexistant"), Exception );
   
@@ -261,11 +261,3 @@ void publickey_test()
   BOOST_REQUIRE( ! empty_key.isValid() );
 }
 
-test_suite*
-init_unit_test_suite( int argc, char* argv[] )
-{
-    test_suite* test= BOOST_TEST_SUITE( "PublicKeyTest" );
-    test->add( BOOST_TEST_CASE( &publickey_test ), 0 /* expected zero error */ );
-    return test;
-}
-