two test fixes for ARM

First, some ARM systems are not fast enough to meet the 30 second
deadline in gwakeuptest.c, so increase that to 60.

Second, we have some signed/unsigned woes in the gparam transform tests.
This commit is contained in:
Ryan Lortie 2011-12-14 09:32:11 -05:00
parent 995a2eb50b
commit a2e9318d4a
2 changed files with 12 additions and 12 deletions

View File

@ -31,7 +31,7 @@ test_semantics (void)
gint i;
/* prevent the test from deadlocking */
alarm (30);
alarm (60);
wakeup = g_wakeup_new ();
g_assert (!check_signaled (wakeup));
@ -210,7 +210,7 @@ test_threaded (void)
gint i;
/* make sure we don't block forever */
alarm (30);
alarm (60);
/* simple mainloop test based on GWakeup.
*

View File

@ -204,8 +204,8 @@ test_value_transform (void)
g_value_unset (&src); \
g_value_unset (&dest);
CHECK_LONG_CONVERSION(G_TYPE_CHAR, char, -124)
CHECK_LONG_CONVERSION(G_TYPE_CHAR, char, 124)
CHECK_LONG_CONVERSION(G_TYPE_CHAR, schar, -124)
CHECK_LONG_CONVERSION(G_TYPE_CHAR, schar, 124)
CHECK_LONG_CONVERSION(G_TYPE_UCHAR, uchar, 0)
CHECK_LONG_CONVERSION(G_TYPE_UCHAR, uchar, 255)
CHECK_LONG_CONVERSION(G_TYPE_INT, int, -12345)
@ -254,8 +254,8 @@ test_value_transform (void)
g_value_unset (&src); \
g_value_unset (&dest);
CHECK_INT64_CONVERSION(G_TYPE_CHAR, char, -124)
CHECK_INT64_CONVERSION(G_TYPE_CHAR, char, 124)
CHECK_INT64_CONVERSION(G_TYPE_CHAR, schar, -124)
CHECK_INT64_CONVERSION(G_TYPE_CHAR, schar, 124)
CHECK_INT64_CONVERSION(G_TYPE_UCHAR, uchar, 0)
CHECK_INT64_CONVERSION(G_TYPE_UCHAR, uchar, 255)
CHECK_INT64_CONVERSION(G_TYPE_INT, int, -12345)
@ -279,8 +279,8 @@ test_value_transform (void)
g_value_unset (&src); \
g_value_unset (&dest);
CHECK_UINT64_CONVERSION(G_TYPE_CHAR, char, -124)
CHECK_UINT64_CONVERSION(G_TYPE_CHAR, char, 124)
CHECK_UINT64_CONVERSION(G_TYPE_CHAR, schar, -124)
CHECK_UINT64_CONVERSION(G_TYPE_CHAR, schar, 124)
CHECK_UINT64_CONVERSION(G_TYPE_UCHAR, uchar, 0)
CHECK_UINT64_CONVERSION(G_TYPE_UCHAR, uchar, 255)
CHECK_UINT64_CONVERSION(G_TYPE_INT, int, -12345)
@ -304,8 +304,8 @@ test_value_transform (void)
g_value_unset (&src); \
g_value_unset (&dest);
CHECK_FLOAT_CONVERSION(G_TYPE_CHAR, char, -124)
CHECK_FLOAT_CONVERSION(G_TYPE_CHAR, char, 124)
CHECK_FLOAT_CONVERSION(G_TYPE_CHAR, schar, -124)
CHECK_FLOAT_CONVERSION(G_TYPE_CHAR, schar, 124)
CHECK_FLOAT_CONVERSION(G_TYPE_UCHAR, uchar, 0)
CHECK_FLOAT_CONVERSION(G_TYPE_UCHAR, uchar, 255)
CHECK_FLOAT_CONVERSION(G_TYPE_INT, int, -12345)
@ -329,8 +329,8 @@ test_value_transform (void)
g_value_unset (&src); \
g_value_unset (&dest);
CHECK_DOUBLE_CONVERSION(G_TYPE_CHAR, char, -124)
CHECK_DOUBLE_CONVERSION(G_TYPE_CHAR, char, 124)
CHECK_DOUBLE_CONVERSION(G_TYPE_CHAR, schar, -124)
CHECK_DOUBLE_CONVERSION(G_TYPE_CHAR, schar, 124)
CHECK_DOUBLE_CONVERSION(G_TYPE_UCHAR, uchar, 0)
CHECK_DOUBLE_CONVERSION(G_TYPE_UCHAR, uchar, 255)
CHECK_DOUBLE_CONVERSION(G_TYPE_INT, int, -12345)