mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-07 11:09:39 +02:00
Fix the large array test to work
Fix by Sven Herzberg, bug 568760 (cherry picked from commit dcdc409cd88f6d47eb54a7eee528be6c8667d394)
This commit is contained in:
parent
05b6b3ce07
commit
1535214687
@ -115,7 +115,11 @@ array_large_size (void)
|
|||||||
g_array_set_size (array, 1073750016);
|
g_array_set_size (array, 1073750016);
|
||||||
exit (0); /* success */
|
exit (0); /* success */
|
||||||
}
|
}
|
||||||
g_test_trap_assert_passed ();
|
|
||||||
|
if (!g_test_trap_has_passed ())
|
||||||
|
{
|
||||||
|
g_test_trap_assert_stderr ("*failed to allocate 2147483648 bytes*");
|
||||||
|
}
|
||||||
|
|
||||||
g_array_free (array, TRUE);
|
g_array_free (array, TRUE);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user