mirror of https://github.com/GNOME/gimp.git
app: Call gimp_log_init() in test init functions
Call gimp_log_init() in test init functions so we can use the GIMP_DEBUG env var.
This commit is contained in:
parent
c33b287dab
commit
edff4949bc
10
app/tests.c
10
app/tests.c
|
@ -38,6 +38,7 @@
|
|||
#include "core/gimp.h"
|
||||
#include "core/gimp-contexts.h"
|
||||
|
||||
#include "gimp-log.h"
|
||||
#include "tests.h"
|
||||
#include "units.h"
|
||||
|
||||
|
@ -58,8 +59,12 @@ gimp_status_func_dummy (const gchar *text1,
|
|||
Gimp *
|
||||
gimp_init_for_testing (void)
|
||||
{
|
||||
Gimp *gimp = gimp_new ("Unit Tested GIMP", NULL, FALSE, TRUE, TRUE, TRUE,
|
||||
FALSE, TRUE, TRUE, FALSE);
|
||||
Gimp *gimp;
|
||||
|
||||
gimp_log_init ();
|
||||
|
||||
gimp = gimp_new ("Unit Tested GIMP", NULL, FALSE, TRUE, TRUE, TRUE,
|
||||
FALSE, TRUE, TRUE, FALSE);
|
||||
|
||||
units_init (gimp);
|
||||
|
||||
|
@ -95,6 +100,7 @@ gimp_init_for_gui_testing (gboolean show_gui)
|
|||
/* from main() */
|
||||
g_thread_init(NULL);
|
||||
g_type_init();
|
||||
gimp_log_init ();
|
||||
|
||||
/* Introduce an error margin for positions written to sessionrc */
|
||||
klass = g_type_class_ref (GIMP_TYPE_SESSION_INFO);
|
||||
|
|
Loading…
Reference in New Issue