projects
/
platform
/
upstream
/
libzypp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
- rework the testsuite after new boost in factory broke it.
[platform/upstream/libzypp.git]
/
tests
/
zypp
/
PublicKey_test.cc
diff --git
a/tests/zypp/PublicKey_test.cc
b/tests/zypp/PublicKey_test.cc
index
ac0b6b2
..
181b382
100644
(file)
--- a/
tests/zypp/PublicKey_test.cc
+++ b/
tests/zypp/PublicKey_test.cc
@@
-235,7
+235,7
@@
char susekey[]=
size_t _susekey_size=2173;
size_t *susekey_size=&_susekey_size;
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 );
{
BOOST_CHECK_THROW( zypp::PublicKey("nonexistant"), Exception );
@@
-261,11
+261,3
@@
void publickey_test()
BOOST_REQUIRE( ! empty_key.isValid() );
}
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;
-}
-