mirror of
https://gitlab.gnome.org/GNOME/gitg
synced 2024-06-30 23:29:33 +00:00
Compile tests without warnings
This commit is contained in:
parent
4668f6f9da
commit
e9222facdc
|
@ -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")
|
||||
{
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user