r20808 - gnucash/trunk/src/libqof/qof/test - [GSOC2011 Unit Testing] Fix memory error by not trying to test pointers in deallocated objects.

John Ralls jralls at code.gnucash.org
Thu Jun 30 13:06:47 EDT 2011


Author: jralls
Date: 2011-06-30 13:06:47 -0400 (Thu, 30 Jun 2011)
New Revision: 20808
Trac: http://svn.gnucash.org/trac/changeset/20808

Modified:
   gnucash/trunk/src/libqof/qof/test/test-qofbook.c
Log:
[GSOC2011 Unit Testing] Fix memory error by not trying to test pointers in deallocated objects.
Author: Muslim Chochlov

Modified: gnucash/trunk/src/libqof/qof/test/test-qofbook.c
===================================================================
--- gnucash/trunk/src/libqof/qof/test/test-qofbook.c	2011-06-30 17:06:35 UTC (rev 20807)
+++ gnucash/trunk/src/libqof/qof/test/test-qofbook.c	2011-06-30 17:06:47 UTC (rev 20808)
@@ -672,10 +672,6 @@
     qof_book_destroy( book );
     g_assert( qof_book_shutting_down( book ) );
     g_assert( test_struct.called );
-    g_assert( book->hash_of_collections );
-    g_assert_cmpint( g_hash_table_size( book->hash_of_collections ), ==, 0 );
-    g_assert( !book->data_tables );
-    g_assert( !book->data_table_finalizers );    
 }
 
 void



More information about the gnucash-changes mailing list