summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDirk-Jan C. Binnema <djcb@djcbsoftware.nl>2023-04-09 11:17:02 +0300
committerDirk-Jan C. Binnema <djcb@djcbsoftware.nl>2023-04-09 15:04:09 +0300
commitc09b93a12993af718f179fb3c3108537fd70f316 (patch)
treec510bfac9177945a554d9c91d92fec1694bd58ce
parent3706fd4786f3bc107f071d04cb7abf4226e91f59 (diff)
tests: turn off dead test test_mu_extract_01
-rw-r--r--mu/tests/test-mu-cmd.cc92
1 files changed, 46 insertions, 46 deletions
diff --git a/mu/tests/test-mu-cmd.cc b/mu/tests/test-mu-cmd.cc
index 63e84ca..b5d2621 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;
-
- 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);
-
- 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));
-
- // 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);
-
- g_free(output);
- g_free(erroutput);
- g_free(cmdline);
- g_free(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);
+
+// 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);
+
+// 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"); */
+
+// /* 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);
+// }
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);