- rework the testsuite after new boost in factory broke it.
[platform/upstream/libzypp.git] / tests / zypp / ResKind_test.cc
index 446cb34..9e8cbbf 100644 (file)
@@ -2,12 +2,11 @@
 #include "zypp/base/Logger.h"
 #include "zypp/ResKind.h"
 
-using boost::unit_test::test_suite;
 using boost::unit_test::test_case;
 using namespace std;
 using namespace zypp;
 
-void dotest()
+BOOST_AUTO_TEST_CASE(reskind_test)
 {
   // Default construced is empty ""
   BOOST_CHECK_EQUAL( ResKind(), "" );
@@ -32,9 +31,3 @@ void dotest()
   BOOST_CHECK_EQUAL( ResKind::compare( "FOO", "foo" ), 0 );
 
 }
-test_suite * init_unit_test_suite( int, char * [] )
-{
-    test_suite * test= BOOST_TEST_SUITE( "ResKind_test" );
-    test->add( BOOST_TEST_CASE( &dotest ), 0 /* expected zero error */ );
-    return test;
-}