* cosmetics
This commit is contained in:
@ -62,7 +62,7 @@ char* mu_util_guess_maildir (void)
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* guess the place of the mu homedir (typically, ~/.mu). Note, this
|
* guess the place of the mu homedir (typically, ~/.mu). Note, this
|
||||||
* directory does not necessarily exist. mu_util_check_dir can be use
|
* directory does not necessarily exist. mu_util_check_dir can be used
|
||||||
* to check that
|
* to check that
|
||||||
*
|
*
|
||||||
* @return the guessed mu homedir, which needs to be freed with g_free
|
* @return the guessed mu homedir, which needs to be freed with g_free
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
/* -*- mode: c; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
|
/* -*- mode: c; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
|
||||||
**
|
**
|
||||||
** Copyright (C) 2008-2011 Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
|
** Copyright (C) 2008-2012 Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
|
||||||
**
|
**
|
||||||
** This program is free software; you can redistribute it and/or modify it
|
** 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
|
** under the terms of the GNU General Public License as published by the
|
||||||
@ -250,8 +250,9 @@ test_mu_find_links (void)
|
|||||||
g_assert (muhome);
|
g_assert (muhome);
|
||||||
tmpdir = test_mu_common_get_random_tmpdir();
|
tmpdir = test_mu_common_get_random_tmpdir();
|
||||||
|
|
||||||
cmdline = g_strdup_printf ("%s find --muhome=%s --format=links --linksdir=%s "
|
cmdline = g_strdup_printf (
|
||||||
"mime:message/rfc822", MU_PROGRAM, muhome, tmpdir);
|
"%s find --muhome=%s --format=links --linksdir=%s "
|
||||||
|
"mime:message/rfc822", MU_PROGRAM, muhome, tmpdir);
|
||||||
|
|
||||||
if (g_test_verbose())
|
if (g_test_verbose())
|
||||||
g_printerr ("%s\n", cmdline);
|
g_printerr ("%s\n", cmdline);
|
||||||
@ -283,10 +284,12 @@ test_mu_find_links (void)
|
|||||||
g_free (output);
|
g_free (output);
|
||||||
g_free (erroutput);
|
g_free (erroutput);
|
||||||
|
|
||||||
/* now we try again with --clearlinks, and the we should be back to 0 errors */
|
/* now we try again with --clearlinks, and the we should be
|
||||||
|
* back to 0 errors */
|
||||||
g_free (cmdline);
|
g_free (cmdline);
|
||||||
cmdline = g_strdup_printf ("%s find --muhome=%s --format=links --linksdir=%s --clearlinks "
|
cmdline = g_strdup_printf (
|
||||||
"mime:message/rfc822", MU_PROGRAM, muhome, tmpdir);
|
"%s find --muhome=%s --format=links --linksdir=%s --clearlinks "
|
||||||
|
"mime:message/rfc822", MU_PROGRAM, muhome, tmpdir);
|
||||||
g_assert (g_spawn_command_line_sync (cmdline,
|
g_assert (g_spawn_command_line_sync (cmdline,
|
||||||
&output, &erroutput,
|
&output, &erroutput,
|
||||||
NULL, NULL));
|
NULL, NULL));
|
||||||
@ -404,7 +407,8 @@ test_mu_extract_02 (void)
|
|||||||
G_DIR_SEPARATOR);
|
G_DIR_SEPARATOR);
|
||||||
|
|
||||||
output = NULL;
|
output = NULL;
|
||||||
g_assert (g_spawn_command_line_sync (cmdline, &output, NULL, NULL, NULL));
|
g_assert (g_spawn_command_line_sync (cmdline, &output, NULL,
|
||||||
|
NULL, NULL));
|
||||||
g_assert_cmpstr (output, ==, "");
|
g_assert_cmpstr (output, ==, "");
|
||||||
|
|
||||||
att1 = g_strdup_printf ("%s%ccuster.jpg", tmpdir, G_DIR_SEPARATOR);
|
att1 = g_strdup_printf ("%s%ccuster.jpg", tmpdir, G_DIR_SEPARATOR);
|
||||||
@ -441,7 +445,8 @@ test_mu_extract_03 (void)
|
|||||||
G_DIR_SEPARATOR,
|
G_DIR_SEPARATOR,
|
||||||
G_DIR_SEPARATOR);
|
G_DIR_SEPARATOR);
|
||||||
output = NULL;
|
output = NULL;
|
||||||
g_assert (g_spawn_command_line_sync (cmdline, &output, NULL, NULL, NULL));
|
g_assert (g_spawn_command_line_sync (cmdline, &output, NULL,
|
||||||
|
NULL, NULL));
|
||||||
g_assert_cmpstr (output, ==, "");
|
g_assert_cmpstr (output, ==, "");
|
||||||
|
|
||||||
att1 = g_strdup_printf ("%s%ccuster.jpg", tmpdir, G_DIR_SEPARATOR);
|
att1 = g_strdup_printf ("%s%ccuster.jpg", tmpdir, G_DIR_SEPARATOR);
|
||||||
@ -559,7 +564,8 @@ test_mu_view_01 (void)
|
|||||||
G_DIR_SEPARATOR,
|
G_DIR_SEPARATOR,
|
||||||
G_DIR_SEPARATOR);
|
G_DIR_SEPARATOR);
|
||||||
output = NULL;
|
output = NULL;
|
||||||
g_assert (g_spawn_command_line_sync (cmdline, &output, NULL, NULL, NULL));
|
g_assert (g_spawn_command_line_sync (cmdline, &output, NULL,
|
||||||
|
NULL, NULL));
|
||||||
g_assert_cmpstr (output, !=, NULL);
|
g_assert_cmpstr (output, !=, NULL);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -615,7 +621,8 @@ test_mu_view_multi (void)
|
|||||||
G_DIR_SEPARATOR,
|
G_DIR_SEPARATOR,
|
||||||
G_DIR_SEPARATOR);
|
G_DIR_SEPARATOR);
|
||||||
output = NULL;
|
output = NULL;
|
||||||
g_assert (g_spawn_command_line_sync (cmdline, &output, NULL, NULL, NULL));
|
g_assert (g_spawn_command_line_sync (cmdline, &output, NULL,
|
||||||
|
NULL, NULL));
|
||||||
g_assert_cmpstr (output, !=, NULL);
|
g_assert_cmpstr (output, !=, NULL);
|
||||||
|
|
||||||
len = strlen(output);
|
len = strlen(output);
|
||||||
@ -651,7 +658,8 @@ test_mu_view_multi_separate (void)
|
|||||||
G_DIR_SEPARATOR,
|
G_DIR_SEPARATOR,
|
||||||
G_DIR_SEPARATOR);
|
G_DIR_SEPARATOR);
|
||||||
output = NULL;
|
output = NULL;
|
||||||
g_assert (g_spawn_command_line_sync (cmdline, &output, NULL, NULL, NULL));
|
g_assert (g_spawn_command_line_sync (cmdline, &output, NULL,
|
||||||
|
NULL, NULL));
|
||||||
g_assert_cmpstr (output, !=, NULL);
|
g_assert_cmpstr (output, !=, NULL);
|
||||||
|
|
||||||
len = strlen(output);
|
len = strlen(output);
|
||||||
@ -683,7 +691,8 @@ test_mu_view_attach (void)
|
|||||||
G_DIR_SEPARATOR,
|
G_DIR_SEPARATOR,
|
||||||
G_DIR_SEPARATOR);
|
G_DIR_SEPARATOR);
|
||||||
output = NULL;
|
output = NULL;
|
||||||
g_assert (g_spawn_command_line_sync (cmdline, &output, NULL, NULL, NULL));
|
g_assert (g_spawn_command_line_sync (cmdline, &output, NULL,
|
||||||
|
NULL, NULL));
|
||||||
g_assert_cmpstr (output, !=, NULL);
|
g_assert_cmpstr (output, !=, NULL);
|
||||||
|
|
||||||
len = strlen(output);
|
len = strlen(output);
|
||||||
@ -713,7 +722,8 @@ test_mu_mkdir_01 (void)
|
|||||||
tmpdir, G_DIR_SEPARATOR);
|
tmpdir, G_DIR_SEPARATOR);
|
||||||
|
|
||||||
output = NULL;
|
output = NULL;
|
||||||
g_assert (g_spawn_command_line_sync (cmdline, &output, NULL, NULL, NULL));
|
g_assert (g_spawn_command_line_sync (cmdline, &output, NULL,
|
||||||
|
NULL, NULL));
|
||||||
g_assert_cmpstr (output, ==, "");
|
g_assert_cmpstr (output, ==, "");
|
||||||
|
|
||||||
dir = g_strdup_printf ("%s%ctest1%ccur", tmpdir, G_DIR_SEPARATOR,
|
dir = g_strdup_printf ("%s%ctest1%ccur", tmpdir, G_DIR_SEPARATOR,
|
||||||
|
|||||||
Reference in New Issue
Block a user