summaryrefslogtreecommitdiffstats
path: root/testfiles/unittest.cpp
diff options
context:
space:
mode:
authorAdrian Boguszewski <adrbogus1@student.pg.gda.pl>2016-06-11 09:31:39 +0000
committerAdrian Boguszewski <adrbogus1@student.pg.gda.pl>2016-06-11 09:31:39 +0000
commit6e8779121b88278d108e86e22fbe19bd6d6cc254 (patch)
tree939926f0f5c30292d1c525003b1af567592a60e8 /testfiles/unittest.cpp
parentRemoved Object class and temporary test dependencies (diff)
parent[Bug 1588983] Finish up German tutorials for 0.92 - part 3. (diff)
downloadinkscape-6e8779121b88278d108e86e22fbe19bd6d6cc254.tar.gz
inkscape-6e8779121b88278d108e86e22fbe19bd6d6cc254.zip
Added return value to remove
(bzr r14954.1.5)
Diffstat (limited to 'testfiles/unittest.cpp')
-rw-r--r--testfiles/unittest.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/testfiles/unittest.cpp b/testfiles/unittest.cpp
index e33b4cb43..1e6d1ff3a 100644
--- a/testfiles/unittest.cpp
+++ b/testfiles/unittest.cpp
@@ -22,10 +22,13 @@ int main(int argc, char **argv) {
#if !GLIB_CHECK_VERSION(2,36,0)
g_type_init();
#endif
- int tmpArgc = 1;
- char const *tmp[] = {"foo", ""};
- char **tmpArgv = const_cast<char **>(tmp);
- Gtk::Main(tmpArgc, tmpArgv);
+
+ // If possible, unit tests shouldn't require a GUI session
+ // since this won't generally be available in auto-builders
+ // int tmpArgc = 1;
+ // char const *tmp[] = {"foo", ""};
+ // char **tmpArgv = const_cast<char **>(tmp);
+ // Gtk::Main(tmpArgc, tmpArgv);
Inkscape::GC::init();