Permalink
Browse files

renable the intentionally broken font test now that there is no log o…

…utput
  • Loading branch information...
1 parent c50c401 commit 6de1a84949fda879e61d5c5468f9609d12872fe9 Dane Springmeyer committed Apr 12, 2012
Showing with 3 additions and 12 deletions.
  1. +3 −12 tests/cpp_tests/font_registration_test.cpp
@@ -1,5 +1,3 @@
-//#include <boost/config/warning_disable.hpp>
-
#include <boost/filesystem/convenience.hpp>
namespace fs = boost::filesystem;
using fs::path;
@@ -9,15 +7,8 @@ namespace sys = boost::system;
#include <iostream>
#include <mapnik/font_engine_freetype.hpp>
-
-// --------------------------------------------------------------------------//
-
int main( int, char*[] )
{
-
-
-// font registration() tests ----------------------------------------------//
-
std::string fontdir("fonts/");
BOOST_TEST( fs::exists( fontdir ) );
@@ -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::face_names().size() == 0 );
- //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::face_names().size() == 0 );
+ 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::face_names().size() == 0 );
// register unifont, since we know it sits in the root fonts/ dir
BOOST_TEST( mapnik::freetype_engine::register_fonts(fontdir) );

0 comments on commit 6de1a84

Please sign in to comment.