Skip to content

Commit

Permalink
renable the intentionally broken font test now that there is no log o…
Browse files Browse the repository at this point in the history
…utput
  • Loading branch information
Dane Springmeyer committed Apr 12, 2012
1 parent c50c401 commit 6de1a84
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions tests/cpp_tests/font_registration_test.cpp
Original file line number Original file line Diff line number Diff line change
@@ -1,5 +1,3 @@
//#include <boost/config/warning_disable.hpp>

#include <boost/filesystem/convenience.hpp> #include <boost/filesystem/convenience.hpp>
namespace fs = boost::filesystem; namespace fs = boost::filesystem;
using fs::path; using fs::path;
Expand All @@ -9,15 +7,8 @@ namespace sys = boost::system;
#include <iostream> #include <iostream>
#include <mapnik/font_engine_freetype.hpp> #include <mapnik/font_engine_freetype.hpp>



// --------------------------------------------------------------------------//

int main( int, char*[] ) int main( int, char*[] )
{ {


// font registration() tests ----------------------------------------------//

std::string fontdir("fonts/"); std::string fontdir("fonts/");


BOOST_TEST( fs::exists( fontdir ) ); BOOST_TEST( fs::exists( fontdir ) );
Expand Down Expand Up @@ -49,9 +40,9 @@ int main( int, char*[] )
BOOST_TEST( mapnik::freetype_engine::register_fonts("tests/data/fonts/fake.ttf") == false ); BOOST_TEST( mapnik::freetype_engine::register_fonts("tests/data/fonts/fake.ttf") == false );
BOOST_TEST( mapnik::freetype_engine::face_names().size() == 0 ); BOOST_TEST( mapnik::freetype_engine::face_names().size() == 0 );


//BOOST_TEST( mapnik::freetype_engine::register_font("tests/data/fonts/intentionally-broken.ttf") == false ); BOOST_TEST( mapnik::freetype_engine::register_font("tests/data/fonts/intentionally-broken.ttf") == false );
//BOOST_TEST( mapnik::freetype_engine::register_fonts("tests/data/fonts/intentionally-broken.ttf") == false ); BOOST_TEST( mapnik::freetype_engine::register_fonts("tests/data/fonts/intentionally-broken.ttf") == false );
//BOOST_TEST( mapnik::freetype_engine::face_names().size() == 0 ); BOOST_TEST( mapnik::freetype_engine::face_names().size() == 0 );


// register unifont, since we know it sits in the root fonts/ dir // register unifont, since we know it sits in the root fonts/ dir
BOOST_TEST( mapnik::freetype_engine::register_fonts(fontdir) ); BOOST_TEST( mapnik::freetype_engine::register_fonts(fontdir) );
Expand Down

0 comments on commit 6de1a84

Please sign in to comment.