From d2fa23dd5f8164a14ee1af72d06a177208652d42 Mon Sep 17 00:00:00 2001 From: John Ralls Date: Fri, 10 Jul 2015 12:45:12 -0700 Subject: [PATCH] Bug 752204 - .gml2 files are modified during build Turn off compression so that they aren't, except when scrub changes them to a new format. In those cases the changes should be committed. --- src/backend/xml/test/test-load-xml2.c | 3 +++ 1 file changed, 3 insertions(+) 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); }