r23004 - gnucash/trunk/src/backend/dbi/test - [Bug 640962] Make check failure: test_backend_dbi
    John Ralls 
    jralls at code.gnucash.org
       
    Sat May 25 18:43:18 EDT 2013
    
    
  
Author: jralls
Date: 2013-05-25 18:43:17 -0400 (Sat, 25 May 2013)
New Revision: 23004
Trac: http://svn.gnucash.org/trac/changeset/23004
Modified:
   gnucash/trunk/src/backend/dbi/test/test-backend-dbi.c
Log:
[Bug 640962] Make check failure: test_backend_dbi
Can't suppress the perfectly legitimate warning, so make it non-fatal;
that way it won't trigger test_checked_handler after the tdata has
popped off the stack.
Modified: gnucash/trunk/src/backend/dbi/test/test-backend-dbi.c
===================================================================
--- gnucash/trunk/src/backend/dbi/test/test-backend-dbi.c	2013-05-25 22:43:07 UTC (rev 23003)
+++ gnucash/trunk/src/backend/dbi/test/test-backend-dbi.c	2013-05-25 22:43:17 UTC (rev 23004)
@@ -44,7 +44,11 @@
     g_assert (qof_load_backend_library ("../../xml/.libs",
 					"gncmod-backend-xml"));
 
-
+    /* Make the missing lock file warning not fatal so that it won't
+     * crash during teardown.
+     */
+    g_log_set_fatal_mask ("gnc.backend.dbi", G_LOG_FATAL_MASK | G_LOG_LEVEL_WARNING | G_LOG_LEVEL_CRITICAL);
+    g_log_set_always_fatal (G_LOG_FATAL_MASK);
     test_suite_gnc_backend_dbi_basic();
     test_suite_gnc_backend_dbi_business();
 
    
    
More information about the gnucash-changes
mailing list