* update test-mu-store test case
This commit is contained in:
@ -62,7 +62,6 @@ test_mu_store_version (void)
|
|||||||
MuStore *store;
|
MuStore *store;
|
||||||
gchar* tmpdir;
|
gchar* tmpdir;
|
||||||
GError *err;
|
GError *err;
|
||||||
const char* my_version;
|
|
||||||
|
|
||||||
tmpdir = test_mu_common_get_random_tmpdir();
|
tmpdir = test_mu_common_get_random_tmpdir();
|
||||||
g_assert (tmpdir);
|
g_assert (tmpdir);
|
||||||
@ -73,11 +72,8 @@ test_mu_store_version (void)
|
|||||||
g_assert (err == NULL);
|
g_assert (err == NULL);
|
||||||
|
|
||||||
g_assert_cmpuint (0,==,mu_store_count (store));
|
g_assert_cmpuint (0,==,mu_store_count (store));
|
||||||
g_assert_cmpstr (MU_XAPIAN_DB_VERSION,==,mu_store_version(store));
|
g_assert_cmpstr (MU_XAPIAN_DB_VERSION,==,
|
||||||
|
mu_store_version(store));
|
||||||
my_version = "test123";
|
|
||||||
g_assert (mu_store_set_version (store, my_version));
|
|
||||||
g_assert_cmpstr (mu_store_version(store), ==, my_version);
|
|
||||||
|
|
||||||
mu_store_destroy (store);
|
mu_store_destroy (store);
|
||||||
g_free (tmpdir);
|
g_free (tmpdir);
|
||||||
|
|||||||
Reference in New Issue
Block a user