mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-04-01 21:33:09 +02:00
tests: Ignore deprecated functions in a few main loop and timer tests
Signed-off-by: Philip Withnall <withnall@endlessm.com> Helps: #1438
This commit is contained in:
parent
2ed76969d0
commit
2df27e3416
@ -695,7 +695,9 @@ typedef struct {
|
|||||||
|
|
||||||
GSource *timeout1, *timeout2;
|
GSource *timeout1, *timeout2;
|
||||||
gint64 time1;
|
gint64 time1;
|
||||||
GTimeVal tv;
|
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
|
||||||
|
GTimeVal tv; /* needed for g_source_get_current_time() */
|
||||||
|
G_GNUC_END_IGNORE_DEPRECATIONS
|
||||||
} TimeTestData;
|
} TimeTestData;
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
@ -730,7 +732,9 @@ G_GNUC_END_IGNORE_DEPRECATIONS
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
|
||||||
GTimeVal tv;
|
GTimeVal tv;
|
||||||
|
G_GNUC_END_IGNORE_DEPRECATIONS
|
||||||
|
|
||||||
/* Second iteration */
|
/* Second iteration */
|
||||||
g_assert_true (g_source_is_destroyed (data->timeout2));
|
g_assert_true (g_source_is_destroyed (data->timeout2));
|
||||||
|
@ -21,6 +21,9 @@
|
|||||||
* Author: Matthias Clasen
|
* Author: Matthias Clasen
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/* We test a few deprecated APIs here. */
|
||||||
|
#define GLIB_DISABLE_DEPRECATION_WARNINGS 1
|
||||||
|
|
||||||
#include "glib.h"
|
#include "glib.h"
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
Loading…
x
Reference in New Issue
Block a user