Fixes broken export to PDF with links.
[inkscape.git] / testfiles / inkscape-test.cpp
blobd9f470196bebf5c45d06450b5fee966f7d2b281b
1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /*
3 * Inkscape integration test main.
5 * Author:
6 * Jon A. Cruz <jon@joncruz.org>
8 * Copyright (C) 2015 Authors
10 * Released under GNU GPL v2+, read the file 'COPYING' for more information.
13 #include <gtest/gtest.h>
15 #include <glib.h>
16 #include <giomm/init.h>
18 #include "inkgc/gc-core.h"
19 #include "util/statics.h"
21 int main(int argc, char **argv)
23 // setup general environment
24 #if !GLIB_CHECK_VERSION(2,36,0)
25 g_type_init();
26 #endif
28 // If possible, unit tests shouldn't require a GUI session
29 // since this won't generally be available in auto-builders
31 Gio::init();
33 Inkscape::GC::init();
35 ::testing::InitGoogleTest(&argc, argv);
36 auto ret = RUN_ALL_TESTS();
38 Inkscape::Util::StaticsBin::get().destroy();
39 return ret;
43 Local Variables:
44 mode:c++
45 c-file-style:"stroustrup"
46 c-file-offsets:((innamespace . 0)(inline-open . 0))
47 indent-tabs-mode:nil
48 fill-column:99
49 End:
51 // vim: expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :