mirror of https://github.com/djcb/mu.git
tests: turn off dead test test_mu_extract_01
This commit is contained in:
parent
3706fd4786
commit
c09b93a129
|
@ -307,51 +307,51 @@ test_mu_find_maildir_special(void)
|
|||
/* search ("subject:atoms", 1); */
|
||||
/* } */
|
||||
|
||||
static void
|
||||
test_mu_extract_01(void)
|
||||
{
|
||||
gchar *cmdline, *output, *erroutput, *tmpdir;
|
||||
// static void
|
||||
// test_mu_extract_01(void)
|
||||
// {
|
||||
// gchar *cmdline, *output, *erroutput, *tmpdir;
|
||||
|
||||
tmpdir = test_mu_common_get_random_tmpdir();
|
||||
g_assert(g_mkdir_with_parents(tmpdir, 0700) == 0);
|
||||
// tmpdir = test_mu_common_get_random_tmpdir();
|
||||
// g_assert(g_mkdir_with_parents(tmpdir, 0700) == 0);
|
||||
|
||||
cmdline = g_strdup_printf("%s extract %s%cFoo%ccur%cmail5",
|
||||
MU_PROGRAM,
|
||||
MU_TESTMAILDIR2,
|
||||
G_DIR_SEPARATOR,
|
||||
G_DIR_SEPARATOR,
|
||||
G_DIR_SEPARATOR);
|
||||
// cmdline = g_strdup_printf("%s extract %s%cFoo%ccur%cmail5",
|
||||
// MU_PROGRAM,
|
||||
// MU_TESTMAILDIR2,
|
||||
// G_DIR_SEPARATOR,
|
||||
// G_DIR_SEPARATOR,
|
||||
// G_DIR_SEPARATOR);
|
||||
|
||||
if (g_test_verbose())
|
||||
g_print("cmd: %s\n", cmdline);
|
||||
// if (g_test_verbose())
|
||||
// g_print("cmd: %s\n", cmdline);
|
||||
|
||||
output = erroutput = NULL;
|
||||
g_assert(g_spawn_command_line_sync(cmdline, &output, &erroutput, NULL, NULL));
|
||||
// output = erroutput = NULL;
|
||||
// g_assert(g_spawn_command_line_sync(cmdline, &output, &erroutput, NULL, NULL));
|
||||
|
||||
// ERROR:test-mu-cmd.cc:347:void test_mu_extract_01(): assertion failed (output ==
|
||||
// "MIME-parts in this message:\n" " 1 <none> text/plain [<none>] (27 bytes)\n" " 2
|
||||
// sittingbull.jpg image/jpeg [inline] (23.9\302\240kB)\n" " 3 custer.jpg image/jpeg
|
||||
// [inline] (21.6\302\240kB)\n"):
|
||||
// ("MIME-parts in this message:\n 1 <none> text/plain [<none>] (27 bytes)\n 2
|
||||
// sittingbull.jpg image/jpeg [inline] (23.9 kB)\n 3 custer.jpg image/jpeg [inline] (21.6
|
||||
// kB)\n" == "MIME-parts in this message:\n 1 <none> text/plain [<none>] (27 bytes)\n 2
|
||||
// sittingbull.jpg image/jpeg [inline] (23.9\302\240kB)\n 3 custer.jpg image/jpeg [inline]
|
||||
// (21.6\302\240kB)\n")
|
||||
/* g_assert_cmpstr (output, */
|
||||
/* ==, */
|
||||
/* "MIME-parts in this message:\n" */
|
||||
/* " 1 <none> text/plain [<none>] (27 bytes)\n" */
|
||||
/* " 2 sittingbull.jpg image/jpeg [inline] (23.9\302\240kB)\n" */
|
||||
/* " 3 custer.jpg image/jpeg [inline] (21.6\302\240kB)\n"); */
|
||||
// // ERROR:test-mu-cmd.cc:347:void test_mu_extract_01(): assertion failed (output ==
|
||||
// // "MIME-parts in this message:\n" " 1 <none> text/plain [<none>] (27 bytes)\n" " 2
|
||||
// // sittingbull.jpg image/jpeg [inline] (23.9\302\240kB)\n" " 3 custer.jpg image/jpeg
|
||||
// // [inline] (21.6\302\240kB)\n"):
|
||||
// // ("MIME-parts in this message:\n 1 <none> text/plain [<none>] (27 bytes)\n 2
|
||||
// // sittingbull.jpg image/jpeg [inline] (23.9 kB)\n 3 custer.jpg image/jpeg [inline] (21.6
|
||||
// // kB)\n" == "MIME-parts in this message:\n 1 <none> text/plain [<none>] (27 bytes)\n 2
|
||||
// // sittingbull.jpg image/jpeg [inline] (23.9\302\240kB)\n 3 custer.jpg image/jpeg [inline]
|
||||
// // (21.6\302\240kB)\n")
|
||||
// /* g_assert_cmpstr (output, */
|
||||
// /* ==, */
|
||||
// /* "MIME-parts in this message:\n" */
|
||||
// /* " 1 <none> text/plain [<none>] (27 bytes)\n" */
|
||||
// /* " 2 sittingbull.jpg image/jpeg [inline] (23.9\302\240kB)\n" */
|
||||
// /* " 3 custer.jpg image/jpeg [inline] (21.6\302\240kB)\n"); */
|
||||
|
||||
/* we expect zero lines of error output */
|
||||
g_assert_cmpuint(newlines_in_output(erroutput), ==, 0);
|
||||
// /* we expect zero lines of error output */
|
||||
// g_assert_cmpuint(newlines_in_output(erroutput), ==, 0);
|
||||
|
||||
g_free(output);
|
||||
g_free(erroutput);
|
||||
g_free(cmdline);
|
||||
g_free(tmpdir);
|
||||
}
|
||||
// g_free(output);
|
||||
// g_free(erroutput);
|
||||
// g_free(cmdline);
|
||||
// g_free(tmpdir);
|
||||
// }
|
||||
|
||||
static gint64
|
||||
get_file_size(const char* path)
|
||||
|
@ -841,7 +841,7 @@ main(int argc, char* argv[])
|
|||
|
||||
g_test_add_func("/mu-cmd/test-mu-find-03", test_mu_find_03);
|
||||
g_test_add_func("/mu-cmd/test-mu-find-maildir-special", test_mu_find_maildir_special);
|
||||
g_test_add_func("/mu-cmd/test-mu-extract-01", test_mu_extract_01);
|
||||
// g_test_add_func("/mu-cmd/test-mu-extract-01", test_mu_extract_01);
|
||||
g_test_add_func("/mu-cmd/test-mu-extract-02", test_mu_extract_02);
|
||||
g_test_add_func("/mu-cmd/test-mu-extract-03", test_mu_extract_03);
|
||||
g_test_add_func("/mu-cmd/test-mu-extract-overwrite", test_mu_extract_overwrite);
|
||||
|
|
Loading…
Reference in New Issue