From d90692e27bf510a26e99e48e3f3c07bd2d5da9fc Mon Sep 17 00:00:00 2001 From: "Dirk-Jan C. Binnema" Date: Sun, 9 Apr 2023 11:17:02 +0300 Subject: [PATCH] tests: turn off dead test test_mu_extract_01 --- mu/tests/test-mu-cmd.cc | 78 ++++++++++++++++++++--------------------- 1 file changed, 39 insertions(+), 39 deletions(-) diff --git a/mu/tests/test-mu-cmd.cc b/mu/tests/test-mu-cmd.cc index 63e84caa..b5d2621d 100644 --- a/mu/tests/test-mu-cmd.cc +++ b/mu/tests/test-mu-cmd.cc @@ -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 text/plain [] (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 text/plain [] (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 text/plain [] (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 text/plain [] (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 text/plain [] (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 text/plain [] (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 text/plain [] (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 text/plain [] (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);