mirror of https://github.com/djcb/mu.git
* test-mu-threads: fix unit test (explicitly ask for thread info)
This commit is contained in:
parent
3d875307e2
commit
cfda1932bc
|
@ -43,7 +43,8 @@ fill_database (const char *testdir)
|
||||||
cmdline = g_strdup_printf ("%s index --muhome=%s --maildir=%s"
|
cmdline = g_strdup_printf ("%s index --muhome=%s --maildir=%s"
|
||||||
" --quiet",
|
" --quiet",
|
||||||
MU_PROGRAM, tmpdir, testdir);
|
MU_PROGRAM, tmpdir, testdir);
|
||||||
/* g_print ("%s\n", cmdline); */
|
if (g_test_verbose())
|
||||||
|
g_print ("%s\n", cmdline);
|
||||||
|
|
||||||
g_assert (g_spawn_command_line_sync (cmdline, NULL, NULL,
|
g_assert (g_spawn_command_line_sync (cmdline, NULL, NULL,
|
||||||
NULL, NULL));
|
NULL, NULL));
|
||||||
|
@ -71,7 +72,7 @@ run_and_get_iter (const char *xpath, const char *query)
|
||||||
g_assert (query);
|
g_assert (query);
|
||||||
|
|
||||||
iter = mu_query_run (mquery, query, MU_MSG_FIELD_ID_DATE,
|
iter = mu_query_run (mquery, query, MU_MSG_FIELD_ID_DATE,
|
||||||
-1, MU_QUERY_FLAG_NONE, NULL);
|
-1, MU_QUERY_FLAG_THREADS, NULL);
|
||||||
mu_query_destroy (mquery);
|
mu_query_destroy (mquery);
|
||||||
g_assert (iter);
|
g_assert (iter);
|
||||||
|
|
||||||
|
@ -127,10 +128,11 @@ test_mu_threads_01 (void)
|
||||||
|
|
||||||
msg = mu_msg_iter_get_msg_floating (iter);
|
msg = mu_msg_iter_get_msg_floating (iter);
|
||||||
g_assert (msg);
|
g_assert (msg);
|
||||||
/* g_print ("%s %s %s\n", ti->threadpath, */
|
|
||||||
/* mu_msg_get_msgid(msg), */
|
if (g_test_verbose())
|
||||||
/* mu_msg_get_path (msg) */
|
g_print ("%s %s %s\n", ti->threadpath,
|
||||||
/* ); */
|
mu_msg_get_msgid(msg),
|
||||||
|
mu_msg_get_path (msg));
|
||||||
|
|
||||||
g_assert (u < G_N_ELEMENTS(items));
|
g_assert (u < G_N_ELEMENTS(items));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue