* test-mu-{cmd,msg,query}.c: update (c) year

This commit is contained in:
Dirk-Jan C. Binnema 2011-05-18 21:21:10 +03:00
parent c6c3dd99c1
commit 2e717a92f9
3 changed files with 35 additions and 3 deletions

View File

@ -409,6 +409,8 @@ test_mu_view_01 (void)
}
static void
test_mu_mkdir_01 (void)
{

View File

@ -1,5 +1,5 @@
/*
** Copyright (C) 2008-2010 Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
** Copyright (C) 2008-2011 Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
**
** This program is free software; you can redistribute it and/or modify it
** under the terms of the GNU General Public License as published by the
@ -214,6 +214,31 @@ test_mu_msg_04 (void)
}
static void
test_mu_msg_05 (void)
{
MuMsg *msg;
msg = mu_msg_new (MU_TESTMAILDIR
"cur/1305664394.2171_402.cthulhu!2,",
NULL, NULL);
g_assert_cmpstr (mu_msg_get_to(msg),
==, "Helmut Kröger <hk@testmu.xxx>");
g_assert_cmpstr (mu_msg_get_subject(msg),
==, "Motörhead");
g_assert_cmpstr (mu_msg_get_from(msg),
==, "Mü <testmu@testmu.xx>");
g_assert_cmpuint (mu_msg_get_prio(msg), /* 'low' */
==, MU_MSG_PRIO_NORMAL);
g_assert_cmpuint (mu_msg_get_date(msg),
==, 0);
mu_msg_unref (msg);
}
/* static gboolean */
/* ignore_error (const char* log_domain, GLogLevelFlags log_level, const gchar* msg, */
@ -224,6 +249,9 @@ test_mu_msg_04 (void)
int
main (int argc, char *argv[])
{
@ -239,7 +267,9 @@ main (int argc, char *argv[])
test_mu_msg_03);
g_test_add_func ("/mu-msg/mu-msg-04",
test_mu_msg_04);
g_test_add_func ("/mu-msg/mu-msg-05",
test_mu_msg_05);
g_log_set_handler (NULL,
G_LOG_LEVEL_MASK | G_LOG_FLAG_FATAL| G_LOG_FLAG_RECURSION,
(GLogFunc)black_hole, NULL);

View File

@ -1,5 +1,5 @@
/*
** Copyright (C) 2008-2010 Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
** Copyright (C) 2008-2011 Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
**
** This program is free software; you can redistribute it and/or modify it
** under the terms of the GNU General Public License as published by the