diff --git a/src/backend/xml/test/test-load-xml2.c b/src/backend/xml/test/test-load-xml2.c index 814d7a5ce2..da77e17c86 100644 --- a/src/backend/xml/test/test-load-xml2.c +++ b/src/backend/xml/test/test-load-xml2.c @@ -42,6 +42,7 @@ #include #include "../gnc-backend-xml.h" #include "../io-gncxml-v2.h" +#include #include #include @@ -91,6 +92,7 @@ test_load_file(const char *filename) remove_locks(filename); ignore_lock = (g_strcmp0(g_getenv("SRCDIR"), ".") != 0); + gnc_prefs_set_file_save_compressed(FALSE); qof_session_begin(session, filename, ignore_lock, FALSE, TRUE); qof_session_load(session, NULL); @@ -105,6 +107,7 @@ test_load_file(const char *filename) "qof error=%d for file [%s]", qof_session_get_error(session), filename); /* Uncomment the line below to generate corrected files */ + gnc_prefs_set_file_save_compressed(FALSE); qof_session_save( session, NULL ); qof_session_end(session); }