[gitg/mainlining: 4/4] Compile tests without warnings
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gitg/mainlining: 4/4] Compile tests without warnings
- Date: Sun, 21 Dec 2014 20:17:39 +0000 (UTC)
commit e9222facdc60f9e2cd120853d5fd03f9a2e09c58
Author: Jesse van den Kieboom <jessevdk gmail com>
Date: Sun Dec 21 21:16:51 2014 +0100
Compile tests without warnings
tests/diff-view.vala | 11 ++++++++++-
tests/progress-bin.vala | 11 ++++++++++-
tests/repository-list-box.vala | 11 ++++++++++-
3 files changed, 30 insertions(+), 3 deletions(-)
---
diff --git a/tests/diff-view.vala b/tests/diff-view.vala
index b561d87..7a0b77d 100644
--- a/tests/diff-view.vala
+++ b/tests/diff-view.vala
@@ -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")
{
diff --git a/tests/progress-bin.vala b/tests/progress-bin.vala
index 6afa5b9..6b2ade5 100644
--- a/tests/progress-bin.vala
+++ b/tests/progress-bin.vala
@@ -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);
diff --git a/tests/repository-list-box.vala b/tests/repository-list-box.vala
index bf04bc4..6582b7a 100644
--- a/tests/repository-list-box.vala
+++ b/tests/repository-list-box.vala
@@ -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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]