diff --git a/tests/cpp_tests/svg_renderer_tests/SConscript b/tests/cpp_tests/svg_renderer_tests/SConscript index beeb2cc33..a5b146016 100644 --- a/tests/cpp_tests/svg_renderer_tests/SConscript +++ b/tests/cpp_tests/svg_renderer_tests/SConscript @@ -5,16 +5,18 @@ Import ('env') headers = env['CPPPATH'] -boost_filesystem = 'boost_filesystem%s' % env['BOOST_APPEND'] -boost_system = 'boost_system%s' % env['BOOST_APPEND'] +filesystem = 'boost_filesystem%s' % env['BOOST_APPEND'] +system = 'boost_system%s' % env['BOOST_APPEND'] +regex = 'boost_regex%s' % env['BOOST_APPEND'] -libraries = [boost_system, boost_filesystem, 'mapnik2'] +libraries = [filesystem, 'mapnik2'] if env['PLATFORM'] == 'Darwin': libraries.append(env['ICU_LIB_NAME']) + libraries.append(regex) if env['HAS_BOOST_SYSTEM']: - libraries.append(boost_system) + libraries.append(system) for cpp_test in glob.glob('*_test.cpp'): env.Program(cpp_test.replace('.cpp',''), [cpp_test], CPPPATH=headers, LIBS=libraries) \ No newline at end of file diff --git a/tests/cpp_tests/svg_renderer_tests/compilation_test.cpp b/tests/cpp_tests/svg_renderer_tests/compilation_test.cpp index 1c044875d..65f31ee74 100644 --- a/tests/cpp_tests/svg_renderer_tests/compilation_test.cpp +++ b/tests/cpp_tests/svg_renderer_tests/compilation_test.cpp @@ -23,12 +23,13 @@ BOOST_AUTO_TEST_CASE(compile_test_case) try { - std::stringstream output_stream; - svg_renderer renderer(map, output_stream); - renderer.apply(); + std::stringstream output_stream; + svg_renderer renderer(map, output_stream); + renderer.apply(); + std::clog << output_stream.str() << "\n"; } catch(...) { - BOOST_FAIL("Empty implementation throws exception."); + BOOST_FAIL("Empty implementation throws exception."); } }