diff options
| author | Patrick Storz <eduard.braun2@gmx.de> | 2019-06-07 22:27:29 +0000 |
|---|---|---|
| committer | Patrick Storz <eduard.braun2@gmx.de> | 2019-06-07 22:28:13 +0000 |
| commit | 96c7da471a5a3c771714f78db87c357873d64816 (patch) | |
| tree | 01210fd886781d10d7598f82674c4c5da65d8576 /testfiles | |
| parent | TextToolbar: Fix superscript/subscript handling (diff) | |
| download | inkscape-96c7da471a5a3c771714f78db87c357873d64816.tar.gz inkscape-96c7da471a5a3c771714f78db87c357873d64816.zip | |
Remove _argv0 from Inkscape::Application
Currently it was only used as the least preferred (and therefore
effectively unused) location where to store the crash backup.
However it wasn't set properly since
408cb49b5559a81ea803df64bf58457a5dd4bf16
causing assertion errors while crashing.
On top of that argv0 is not a reliable way to determine the path to
the currently running executable anyway.
Fixes https://gitlab.com/inkscape/inkscape/issues/176
Diffstat (limited to 'testfiles')
| -rw-r--r-- | testfiles/doc-per-case-test.cpp | 2 | ||||
| -rw-r--r-- | testfiles/fuzzer.cpp | 2 | ||||
| -rw-r--r-- | testfiles/src/cxxtests-to-migrate/test-helpers.h | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/testfiles/doc-per-case-test.cpp b/testfiles/doc-per-case-test.cpp index d3536ef93..0f3721ca9 100644 --- a/testfiles/doc-per-case-test.cpp +++ b/testfiles/doc-per-case-test.cpp @@ -26,7 +26,7 @@ void DocPerCaseTest::SetUpTestCase() if ( !Inkscape::Application::exists() ) { // Create the global inkscape object. - Inkscape::Application::create("", false); + Inkscape::Application::create(false); } _doc = SPDocument::createNewDoc( NULL, TRUE, true ); diff --git a/testfiles/fuzzer.cpp b/testfiles/fuzzer.cpp index 240a84a65..450d98c58 100644 --- a/testfiles/fuzzer.cpp +++ b/testfiles/fuzzer.cpp @@ -15,7 +15,7 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) { g_type_init(); Inkscape::GC::init(); if ( !Inkscape::Application::exists() ) - Inkscape::Application::create("", false); + Inkscape::Application::create(false); //void* a= sp_repr_read_mem((const char*)data, size, 0); SPDocument *doc = SPDocument::createNewDocFromMem( (const char*)data, size, 0); if(doc) diff --git a/testfiles/src/cxxtests-to-migrate/test-helpers.h b/testfiles/src/cxxtests-to-migrate/test-helpers.h index bae8ab34f..96bf5b47c 100644 --- a/testfiles/src/cxxtests-to-migrate/test-helpers.h +++ b/testfiles/src/cxxtests-to-migrate/test-helpers.h @@ -40,7 +40,7 @@ T* createSuiteAndDocument( void (*fun)(T*&) ) if ( !Inkscape::Application::exists() ) { // Create the global inkscape object. - Inkscape::Application::create("", false); + Inkscape::Application::create(false); } SPDocument* tmp = SPDocument::createNewDoc( NULL, TRUE, true ); |
