* update test cases for other changes

This commit is contained in:
Dirk-Jan C. Binnema
2011-08-29 23:39:11 +03:00
parent fbc786f2fc
commit ff7a40b3d9
3 changed files with 184 additions and 180 deletions

View File

@ -112,7 +112,7 @@ test_mu_index (void)
xpath = g_strdup_printf ("%s%c%s", muhome, G_DIR_SEPARATOR, "xapian");
store = mu_store_new (xpath, NULL, NULL);
store = mu_store_new_read_only (xpath, NULL);
g_assert (store);
g_assert_cmpuint (mu_store_count (store), ==, 9);

View File

@ -585,9 +585,9 @@ main (int argc, char *argv[])
g_test_add_func ("/mu-query/test-mu-query-tags_02",
test_mu_query_tags_02);
g_log_set_handler (NULL,
G_LOG_LEVEL_MASK | G_LOG_FLAG_FATAL| G_LOG_FLAG_RECURSION,
(GLogFunc)black_hole, NULL);
/* g_log_set_handler (NULL, */
/* G_LOG_LEVEL_MASK | G_LOG_FLAG_FATAL| G_LOG_FLAG_RECURSION, */
/* (GLogFunc)black_hole, NULL); */
rv = g_test_run ();

View File

@ -44,7 +44,7 @@ test_mu_store_new_destroy (void)
g_assert (tmpdir);
err = NULL;
store = mu_store_new (tmpdir, NULL, &err);
store = mu_store_new_writable (tmpdir, NULL, &err);
g_assert (store);
g_assert (err == NULL);
@ -68,8 +68,12 @@ test_mu_store_version (void)
g_assert (tmpdir);
err = NULL;
store = mu_store_new (tmpdir, NULL, &err);
store = mu_store_new_writable (tmpdir, NULL, &err);
g_assert (store);
mu_store_destroy (store);
store = mu_store_new_read_only (tmpdir, &err);
g_assert (store);
g_assert (err == NULL);
g_assert_cmpuint (0,==,mu_store_count (store));
@ -91,7 +95,7 @@ test_mu_store_store_msg_and_count (void)
tmpdir = test_mu_common_get_random_tmpdir();
g_assert (tmpdir);
store = mu_store_new (tmpdir, NULL, NULL);
store = mu_store_new_writable (tmpdir, NULL, NULL);
g_assert (store);
g_assert_cmpuint (0,==,mu_store_count (store));
@ -144,7 +148,7 @@ test_mu_store_store_msg_remove_and_count (void)
tmpdir = test_mu_common_get_random_tmpdir();
g_assert (tmpdir);
store = mu_store_new (tmpdir, NULL, NULL);
store = mu_store_new_writable (tmpdir, NULL, NULL);
g_assert (store);
g_assert_cmpuint (0,==,mu_store_count (store));