summaryrefslogtreecommitdiffstats
path: root/testfiles/unittest.cpp
diff options
context:
space:
mode:
authorAlex Valavanis <valavanisalex@gmail.com>2016-06-10 13:42:18 +0000
committerAlexander Valavanis <valavanisalex@gmail.com>2016-06-10 13:42:18 +0000
commit83d31ec5c59c811dae369b67f2f52258c4182406 (patch)
tree3fb32b576d4395ec72cab68178e1d28d26790ef2 /testfiles/unittest.cpp
parentFix make test target (diff)
downloadinkscape-83d31ec5c59c811dae369b67f2f52258c4182406.tar.gz
inkscape-83d31ec5c59c811dae369b67f2f52258c4182406.zip
Remove unit test dependency on GUI session to allow auto-build in PPA
(bzr r14969)
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 0ec8f0383..79e240e06 100644
--- a/testfiles/unittest.cpp
+++ b/testfiles/unittest.cpp
@@ -35,10 +35,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();