tests: use atexit, g_atexit has been deprecated in glib master
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Mon, 12 Dec 2011 10:18:14 +0000 (10:18 +0000)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Mon, 12 Dec 2011 10:18:14 +0000 (10:18 +0000)
tests/check/elements/souphttpsrc.c

index 7a1b677..9fc8f7c 100644 (file)
@@ -23,6 +23,8 @@
 # include "config.h"
 #endif
 
+#include <stdlib.h>
+
 #include <glib.h>
 #include <glib/gprintf.h>
 #include <libsoup/soup-address.h>
@@ -454,7 +456,7 @@ souphttpsrc_suite (void)
 
   suite_add_tcase (s, tc_chain);
   run_server (&http_port, &https_port);
-  g_atexit (stop_server);
+  atexit (stop_server);
   tcase_add_test (tc_chain, test_first_buffer_has_offset);
   tcase_add_test (tc_chain, test_redirect_yes);
   tcase_add_test (tc_chain, test_redirect_no);