* add test_mu_util_get_dtype_with_lstat unit test, cosmetics
This commit is contained in:
@ -213,6 +213,19 @@ test_mu_util_str_from_strv_03 (void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
static void
|
||||||
|
test_mu_util_get_dtype_with_lstat (void)
|
||||||
|
{
|
||||||
|
g_assert_cmpuint (
|
||||||
|
mu_util_get_dtype_with_lstat (MU_TESTMAILDIR), ==, DT_DIR);
|
||||||
|
g_assert_cmpuint (
|
||||||
|
mu_util_get_dtype_with_lstat (MU_TESTMAILDIR2), ==, DT_DIR);
|
||||||
|
g_assert_cmpuint (
|
||||||
|
mu_util_get_dtype_with_lstat (MU_TESTMAILDIR2 "Foo/cur/mail4"),
|
||||||
|
==, DT_REG);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
int
|
int
|
||||||
main (int argc, char *argv[])
|
main (int argc, char *argv[])
|
||||||
@ -245,6 +258,9 @@ main (int argc, char *argv[])
|
|||||||
g_test_add_func ("/mu-util/mu-util-str-from-strv-03",
|
g_test_add_func ("/mu-util/mu-util-str-from-strv-03",
|
||||||
test_mu_util_str_from_strv_03);
|
test_mu_util_str_from_strv_03);
|
||||||
|
|
||||||
|
g_test_add_func ("/mu-util/mu-util-get-dtype-with-lstat",
|
||||||
|
test_mu_util_get_dtype_with_lstat);
|
||||||
|
|
||||||
g_log_set_handler (NULL,
|
g_log_set_handler (NULL,
|
||||||
G_LOG_LEVEL_DEBUG|
|
G_LOG_LEVEL_DEBUG|
|
||||||
G_LOG_LEVEL_MESSAGE|
|
G_LOG_LEVEL_MESSAGE|
|
||||||
|
|||||||
Reference in New Issue
Block a user