mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-24 22:46:15 +01:00
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:
parent
995a2eb50b
commit
a2e9318d4a
@ -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.
|
||||
*
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user