diff options
| author | Adrian Boguszewski <adrbogus1@student.pg.gda.pl> | 2016-06-11 09:31:39 +0000 |
|---|---|---|
| committer | Adrian Boguszewski <adrbogus1@student.pg.gda.pl> | 2016-06-11 09:31:39 +0000 |
| commit | 6e8779121b88278d108e86e22fbe19bd6d6cc254 (patch) | |
| tree | 939926f0f5c30292d1c525003b1af567592a60e8 /testfiles/unittest.cpp | |
| parent | Removed Object class and temporary test dependencies (diff) | |
| parent | [Bug 1588983] Finish up German tutorials for 0.92 - part 3. (diff) | |
| download | inkscape-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.cpp | 11 |
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(); |
