* update test cases for other changes
This commit is contained in:
@ -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);
|
||||
|
||||
@ -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 ();
|
||||
|
||||
|
||||
@ -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));
|
||||
|
||||
Reference in New Issue
Block a user