From 83d31ec5c59c811dae369b67f2f52258c4182406 Mon Sep 17 00:00:00 2001 From: Alex Valavanis Date: Fri, 10 Jun 2016 14:42:18 +0100 Subject: Remove unit test dependency on GUI session to allow auto-build in PPA (bzr r14969) --- testfiles/unittest.cpp | 11 +++++++---- 1 file 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(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(tmp); + // Gtk::Main(tmpArgc, tmpArgv); Inkscape::GC::init(); -- cgit v1.2.3