Compile tests without warnings

This commit is contained in:
Jesse van den Kieboom 2014-12-21 21:16:51 +01:00
parent 4668f6f9da
commit e9222facdc
3 changed files with 30 additions and 3 deletions

View File

@ -3,7 +3,16 @@ class TestDiffView
public static int main(string[] args)
{
Gtk.init(ref args);
Gitg.init();
try
{
Gitg.init();
}
catch (Error e)
{
stderr.printf("Failed to initialize ggit: %s\n", e.message);
return 1;
}
if (Environment.get_variable("GITG_GTK_DIFF_VIEW_DEBUG") != "local" && args.length > 1 && args[1] == "--local")
{

View File

@ -6,7 +6,16 @@ class TestProgressGrid
public static int main(string[] args)
{
Gtk.init(ref args);
Gitg.init();
try
{
Gitg.init();
}
catch (Error e)
{
stderr.printf("Failed to initialize ggit: %s\n", e.message);
return 1;
}
var window = new Window();
window.set_default_size(300, 300);

View File

@ -6,7 +6,16 @@ class TestRepositoryListBox
public static int main(string[] args)
{
Gtk.init(ref args);
Gitg.init();
try
{
Gitg.init();
}
catch (Error e)
{
stderr.printf("Failed to initialize ggit: %s\n", e.message);
return 1;
}
var window = new Window();
window.set_default_size(300, 300);