Missed commit in order to fix compilation using '--enable-fatal' and '--disable-depre...
authorAlejandro Piñeiro <apinheiro@igalia.com>
Fri, 26 Jun 2009 11:50:28 +0000 (13:50 +0200)
committerAlejandro Piñeiro <apinheiro@igalia.com>
Fri, 26 Jun 2009 12:09:42 +0000 (14:09 +0200)
* tests/check-hildon-banner.c
* tests/check_text.c
* tests/test_suites.h
Protect hildon-banner tests with #ifndef HILDON_DISABLE_DEPRECATED, as
were testing deprecated functions.
* examples/hildon-banner-example.c: typo on button3 type, that causes
a fail compiling with --with-examples but without --disable-deprecated

Missed commit in order to fix compilation using '--enable-fatal' and
'--disable-deprecated' (see previous commit)

ChangeLog
examples/hildon-banner-example.c
tests/check-hildon-banner.c
tests/check_test.c
tests/test_suites.h

index bbeafd8..84baeb5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,18 @@
 2009-06-26  Alejandro Pinheiro  <apinheiro@igalia.com>
 
+       * tests/check-hildon-banner.c
+       * tests/check_text.c
+       * tests/test_suites.h
+       Protect hildon-banner tests with #ifndef HILDON_DISABLE_DEPRECATED, as
+       were testing deprecated functions.
+       * examples/hildon-banner-example.c: typo on button3 type, that causes
+       a fail compiling with --with-examples but without --disable-deprecated
+
+       Missed commit in order to fix compilation using '--enable-fatal' and
+       '--disable-deprecated' (see previous commit)
+
+2009-06-26  Alejandro Pinheiro  <apinheiro@igalia.com>
+
        * examples/hildon-banner-example.c: Protect deprecated hildon-banner
        functions with #ifndef HILDON_DISABLE_DEPRECATED
        * examples/hildon-find-toolbar.c: Protect deprecated
index 887c033..847172d 100644 (file)
@@ -81,7 +81,7 @@ main                                            (int argc,
     HildonProgram *program;
     GtkWidget *window, *vbox, *button1;
 #ifndef HILDON_DISABLE_DEPRECATED
-    GtkWidget *button2, button3;
+    GtkWidget *button2, *button3;
 #endif
 
     hildon_gtk_init (&argc, &argv);
index 4bc40d7..ed3ee42 100644 (file)
@@ -21,6 +21,7 @@
  * 02110-1301 USA
  *
  */
+#ifndef HILDON_DISABLE_DEPRECATED
 
 #include <stdlib.h>
 #include <check.h>
@@ -215,8 +216,6 @@ START_TEST (test_show_progress_invalid)
 }
 END_TEST
 
-
-
 /* ---------- Suite creation ---------- */
 Suite *create_hildon_banner_suite()
 {
@@ -225,7 +224,7 @@ Suite *create_hildon_banner_suite()
 
   /* Create test cases */
   TCase *tc1 = tcase_create("show_animation");
-  TCase *tc2 = tcase_create("show_animation");
+  TCase *tc2 = tcase_create("show_progress");
 
   /* Create unit tests for hildon_banner_show_animation and add it to the suite */
   tcase_add_checked_fixture(tc1, fx_setup_default_banner, fx_teardown_default_banner);
@@ -244,3 +243,5 @@ Suite *create_hildon_banner_suite()
   /* Return created suite */
   return s;             
 }
+
+#endif
index afc2075..c82c438 100644 (file)
@@ -79,7 +79,11 @@ configure_tests(gint environment)
   srunner_add_suite(sr, create_hildon_note_suite());
   srunner_add_suite(sr, create_hildon_wizard_dialog_suite());
   /* srunner_add_suite(sr, create_hildon_scroll_area_suite()); */
+#ifndef HILDON_DISABLE_DEPRECATED
+  /* HildonBanner is not deprecated, but all the functions tested in
+     this suite are deprecated*/
   srunner_add_suite(sr, create_hildon_banner_suite());
+#endif
   srunner_add_suite(sr, create_hildon_window_suite());
   srunner_add_suite(sr, create_hildon_helper_suite());
   srunner_add_suite(sr, create_hildon_picker_button_suite());
index d0d5afa..c0b6b29 100644 (file)
@@ -51,7 +51,11 @@ Suite *create_hildon_note_suite(void);
 Suite *create_hildon_volumebar_suite(void);
 Suite *create_hildon_volumebar_range_suite(void);
 Suite *create_hildon_wizard_dialog_suite(void);
+#ifndef HILDON_DISABLE_DEPRECATED
+/* HildonBanner is not deprecated, but all the functions tested in
+   this suite are deprecated*/
 Suite *create_hildon_banner_suite(void);
+#endif
 Suite *create_hildon_font_selection_dialog_suite(void);
 Suite *create_hildon_system_sound_suite(void);
 Suite *create_hildon_scroll_area_suite(void);