mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-31 04:43:06 +02:00
Merge branch 'fix-glib-win32-test' into 'master'
glib/tests/win32.c: Fix test variable types Closes #1797 See merge request GNOME/glib!891
This commit is contained in:
commit
fc59d3ee3d
@ -39,8 +39,8 @@ test_subst_pid_and_event (void)
|
|||||||
gchar debugger_enough[G_N_ELEMENTS (not_enough) + 1];
|
gchar debugger_enough[G_N_ELEMENTS (not_enough) + 1];
|
||||||
gchar debugger_big[65535] = {0};
|
gchar debugger_big[65535] = {0};
|
||||||
gchar *output;
|
gchar *output;
|
||||||
DWORD be = 0xFFFFFFFF;
|
guintptr be = (guintptr) 0xFFFFFFFF;
|
||||||
guintptr bp = (guintptr) G_MAXSIZE;
|
DWORD bp = G_MAXSIZE;
|
||||||
|
|
||||||
/* %f is not valid */
|
/* %f is not valid */
|
||||||
g_assert_false (_g_win32_subst_pid_and_event (debugger_3, G_N_ELEMENTS (debugger_3),
|
g_assert_false (_g_win32_subst_pid_and_event (debugger_3, G_N_ELEMENTS (debugger_3),
|
||||||
@ -59,7 +59,7 @@ test_subst_pid_and_event (void)
|
|||||||
|
|
||||||
g_assert_true (_g_win32_subst_pid_and_event (debugger_big, G_N_ELEMENTS (debugger_big),
|
g_assert_true (_g_win32_subst_pid_and_event (debugger_big, G_N_ELEMENTS (debugger_big),
|
||||||
"multipl%e big %e %entries and %pids are %provided here", bp, be));
|
"multipl%e big %e %entries and %pids are %provided here", bp, be));
|
||||||
output = g_strdup_printf ("multipl%lu big %lu %luntries and %lluids are %llurovided here", be, be, be, (guint64) bp, (guint64) bp);
|
output = g_strdup_printf ("multipl%llu big %llu %lluntries and %luids are %lurovided here", (guint64) be, (guint64) be, (guint64) be, bp, bp);
|
||||||
g_assert_cmpstr (debugger_big, ==, output);
|
g_assert_cmpstr (debugger_big, ==, output);
|
||||||
g_free (output);
|
g_free (output);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user