mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-10-06 21:50:05 +02:00
Only declare variables at the beginning of a code block. Bug #511654.
2008-01-23 Jens Granseuer <jensgr@gmx.net> * glib/gtestutils.c: (g_test_trap_fork): * glib/tests/testing.c: (test_assertions): Only declare variables at the beginning of a code block. Bug #511654. svn path=/trunk/; revision=6361
This commit is contained in:
committed by
Jens Granseuer
parent
62d9a57c97
commit
afc9506e9e
@@ -26,13 +26,14 @@
|
||||
static void
|
||||
test_assertions (void)
|
||||
{
|
||||
gchar *fuu;
|
||||
g_assert_cmpint (1, >, 0);
|
||||
g_assert_cmphex (2, ==, 2);
|
||||
g_assert_cmpfloat (3.3, !=, 7);
|
||||
g_assert_cmpfloat (7, <=, 3 + 4);
|
||||
g_assert (TRUE);
|
||||
g_assert_cmpstr ("foo", !=, "faa");
|
||||
gchar *fuu = g_strdup_printf ("f%s", "uu");
|
||||
fuu = g_strdup_printf ("f%s", "uu");
|
||||
g_test_queue_free (fuu);
|
||||
g_assert_cmpstr ("foo", !=, fuu);
|
||||
g_assert_cmpstr ("fuu", ==, fuu);
|
||||
|
Reference in New Issue
Block a user