summaryrefslogtreecommitdiff
path: root/tests/test-context.cc
diff options
context:
space:
mode:
authorJonathon Jongsma <jjongsma@gnome.org>2007-07-04 14:54:23 -0500
committerJonathon Jongsma <jjongsma@gnome.org>2007-07-04 15:24:17 -0500
commite10c4e12f7948cd6325812cbb089537231b1144e (patch)
treee73e074d9bcbcbf27413a1ff1dc0093c5ee6cbf0 /tests/test-context.cc
parentebd5ef60afb32e88b0ab8c4c690aea3fc5b82085 (diff)
examples/, tests/: fix a bunch of minor compile errors when compiling with -Werror
Diffstat (limited to 'tests/test-context.cc')
-rw-r--r--tests/test-context.cc41
1 files changed, 22 insertions, 19 deletions
diff --git a/tests/test-context.cc b/tests/test-context.cc
index bd0ce2a..2cbd246 100644
--- a/tests/test-context.cc
+++ b/tests/test-context.cc
@@ -231,26 +231,29 @@ test_current_point ()
}
test_suite*
-init_unit_test_suite( int argc, char* argv[] )
+init_unit_test_suite(int argc, char* argv[])
{
- test_suite* test= BOOST_TEST_SUITE( "Cairo::Context Tests" );
+ // compile even with -Werror
+ if (argc && argv) {}
- test->add (BOOST_TEST_CASE (&test_dashes));
- test->add (BOOST_TEST_CASE (&test_save_restore));
- test->add (BOOST_TEST_CASE (&test_operator));
- test->add (BOOST_TEST_CASE (&test_source));
- test->add (BOOST_TEST_CASE (&test_tolerance));
- test->add (BOOST_TEST_CASE (&test_antialias));
- test->add (BOOST_TEST_CASE (&test_fill_rule));
- test->add (BOOST_TEST_CASE (&test_line_width));
- test->add (BOOST_TEST_CASE (&test_line_cap));
- test->add (BOOST_TEST_CASE (&test_line_join));
- test->add (BOOST_TEST_CASE (&test_miter_limit));
- //test->add (BOOST_TEST_CASE (&test_matrix));
- //test->add (BOOST_TEST_CASE (&test_user_device));
- test->add (BOOST_TEST_CASE (&test_draw));
- test->add (BOOST_TEST_CASE (&test_clip));
- test->add (BOOST_TEST_CASE (&test_current_point));
+ test_suite* test= BOOST_TEST_SUITE( "Cairo::Context Tests" );
- return test;
+ test->add (BOOST_TEST_CASE (&test_dashes));
+ test->add (BOOST_TEST_CASE (&test_save_restore));
+ test->add (BOOST_TEST_CASE (&test_operator));
+ test->add (BOOST_TEST_CASE (&test_source));
+ test->add (BOOST_TEST_CASE (&test_tolerance));
+ test->add (BOOST_TEST_CASE (&test_antialias));
+ test->add (BOOST_TEST_CASE (&test_fill_rule));
+ test->add (BOOST_TEST_CASE (&test_line_width));
+ test->add (BOOST_TEST_CASE (&test_line_cap));
+ test->add (BOOST_TEST_CASE (&test_line_join));
+ test->add (BOOST_TEST_CASE (&test_miter_limit));
+ //test->add (BOOST_TEST_CASE (&test_matrix));
+ //test->add (BOOST_TEST_CASE (&test_user_device));
+ test->add (BOOST_TEST_CASE (&test_draw));
+ test->add (BOOST_TEST_CASE (&test_clip));
+ test->add (BOOST_TEST_CASE (&test_current_point));
+
+ return test;
}