mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-08 17:50:10 +00:00
Make the new compose table test work
This just copies what we do already for other tests that check parser failures.
This commit is contained in:
parent
31727a4ec5
commit
7fb6c04e99
@ -408,8 +408,23 @@ match_algorithmic (void)
|
||||
static void
|
||||
compose_table_large (void)
|
||||
{
|
||||
char *file = g_build_filename (g_test_get_dir (G_TEST_DIST), "compose", "large", NULL);
|
||||
gtk_compose_table_parse (file, NULL);
|
||||
if (g_test_subprocess ())
|
||||
{
|
||||
char *file;
|
||||
GtkComposeTable *table;
|
||||
|
||||
file = g_test_build_filename (G_TEST_DIST, "compose", "large", NULL);
|
||||
|
||||
table = gtk_compose_table_parse (file, NULL);
|
||||
g_assert_nonnull (table);
|
||||
g_free (file);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
g_test_trap_subprocess (NULL, 0, 0);
|
||||
g_test_trap_assert_stderr ("*can't handle compose tables this large*");
|
||||
g_test_trap_assert_failed ();
|
||||
}
|
||||
|
||||
int
|
||||
|
Loading…
Reference in New Issue
Block a user