glib r7353 - in trunk: . tests



Author: matthiasc
Date: Thu Aug 14 03:05:17 2008
New Revision: 7353
URL: http://svn.gnome.org/viewvc/glib?rev=7353&view=rev

Log:
2008-08-13  Matthias Clasen  <mclasen redhat com>

        Bug 547337 â G_DISABLE_DEPRECATED breaks tests build

        * tests/testglib.c: Protect deprecated API by ifdefs.
        Patch by Kalle Vahlman



Modified:
   trunk/ChangeLog
   trunk/tests/testglib.c

Modified: trunk/tests/testglib.c
==============================================================================
--- trunk/tests/testglib.c	(original)
+++ trunk/tests/testglib.c	Thu Aug 14 03:05:17 2008
@@ -1486,6 +1486,7 @@
   /* g_debug (argv[0]); */
 }
 
+#ifndef G_DISABLE_DEPRECATED
 static void
 test_mem_chunks (void)
 {
@@ -1502,6 +1503,7 @@
   for (i = 0; i < 10000; i++)
     g_mem_chunk_free (mem_chunk, mem[i]);
 }
+#endif
 
 int
 main (int   argc,
@@ -1523,7 +1525,9 @@
   g_test_add_func ("/testglib/File Paths", test_paths);
   g_test_add_func ("/testglib/File Functions", test_file_functions);
   g_test_add_func ("/testglib/Parse Debug Strings", test_g_parse_debug_string);
+#ifndef G_DISABLE_DEPRECATED
   g_test_add_func ("/testglib/GMemChunk (deprecated)", test_mem_chunks);
+#endif
   g_test_add_func ("/testglib/Warnings & Errors", log_warning_error_tests);
   g_test_add_func ("/testglib/Timers (slow)", timer_tests);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]