only test if reader works (to avoid failures for unsupported formats)

This commit is contained in:
Dane Springmeyer 2013-06-03 12:36:54 -07:00
parent 87850281d0
commit 9768052d97

View file

@ -32,7 +32,7 @@ int main(int argc, char** argv)
try
{
std::auto_ptr<mapnik::image_reader> reader(mapnik::get_image_reader(should_throw,*type));
BOOST_TEST( false );
if (reader.get()) BOOST_TEST( false );
}
catch (std::exception const&)
{
@ -46,7 +46,7 @@ int main(int argc, char** argv)
try
{
std::auto_ptr<mapnik::image_reader> reader(mapnik::get_image_reader(should_throw,*type));
BOOST_TEST( false );
if (reader.get()) BOOST_TEST( false );
}
catch (std::exception const&)
{
@ -60,7 +60,7 @@ int main(int argc, char** argv)
try
{
std::auto_ptr<mapnik::image_reader> reader(mapnik::get_image_reader(should_throw,*type));
BOOST_TEST( false );
if (reader.get()) BOOST_TEST( false );
}
catch (std::exception const&)
{
@ -74,7 +74,7 @@ int main(int argc, char** argv)
try
{
std::auto_ptr<mapnik::image_reader> reader(mapnik::get_image_reader(should_throw,*type));
BOOST_TEST( false );
if (reader.get()) BOOST_TEST( false );
}
catch (std::exception const&)
{