Use headless init functions to prevent test breakage
This commit is contained in:
		@ -41,7 +41,7 @@ test_create (void)
 | 
				
			|||||||
int
 | 
					int
 | 
				
			||||||
main (int argc, char **argv)
 | 
					main (int argc, char **argv)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    gtk_test_init (&argc, &argv, NULL);
 | 
					    g_test_init (&argc, &argv, NULL);
 | 
				
			||||||
    g_test_add_func ("/eek-simple-test/create", test_create);
 | 
					    g_test_add_func ("/eek-simple-test/create", test_create);
 | 
				
			||||||
    return g_test_run ();
 | 
					    return g_test_run ();
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
				
			|||||||
@ -46,7 +46,7 @@ test_output_parse (void)
 | 
				
			|||||||
int
 | 
					int
 | 
				
			||||||
main (int argc, char **argv)
 | 
					main (int argc, char **argv)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    gtk_test_init (&argc, &argv, NULL);
 | 
					    g_test_init (&argc, &argv, NULL);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    g_test_add_func ("/eek-xml-test/output-parse", test_output_parse);
 | 
					    g_test_add_func ("/eek-xml-test/output-parse", test_output_parse);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -63,7 +63,7 @@ test_check_xkb (void)
 | 
				
			|||||||
int
 | 
					int
 | 
				
			||||||
main (int argc, char **argv)
 | 
					main (int argc, char **argv)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    gtk_test_init (&argc, &argv, NULL);
 | 
					    g_test_init (&argc, &argv, NULL);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    g_test_add_func ("/test-keymap-generation/check-xkb", test_check_xkb);
 | 
					    g_test_add_func ("/test-keymap-generation/check-xkb", test_check_xkb);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user