Skip to content

Commit

Permalink
DBI Backend: Cleanup after testing version control so that repeating …
Browse files Browse the repository at this point in the history
…the tests doesn't fail.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20230 57a11ea4-9604-0410-9ed3-97b8803252fd
  • Loading branch information
jralls committed Feb 4, 2011
1 parent 3fe1707 commit f99d162
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/backend/dbi/test/test-dbi-stuff.c
Expand Up @@ -335,7 +335,13 @@ test_dbi_version_control( const gchar* driver, const gchar* url )
qof_session_ensure_all_data_loaded( sess );
err = qof_session_pop_error( sess );
do_test( err == ERR_SQL_DB_TOO_NEW, "DB Failed to flag too new" );
cleanup:
cleanup:
qbe = qof_session_get_backend( sess );
book = qof_session_get_book( sess );
qof_book_begin_edit( book );
gnc_sql_set_table_version( (GncSqlBackend*)qbe,
"Gnucash-Resave", GNUCASH_RESAVE_VERSION );
qof_book_commit_edit( book );
qof_session_end( sess );
qof_session_destroy( sess );
}

0 comments on commit f99d162

Please sign in to comment.