mu/lib/tests
Jakub Sitnicki ede481d4c0 mu: Test splicing child containers when there is only one thread
This test reproduces a regression introduced by commit 97101f1f82
("mu: Prune empty container when an only child gets promoted to the
root set").

When the results of a mu-find query contain only a one thread:

$ mu find --threads --fields 'd s' ''
Sat 09 Aug 2014 07:00:00 PM CEST [mu4e] Test Message
  `-> Sat 09 Aug 2014 08:30:00 PM CEST Re: [mu4e] Test Message

... and we narrow down the query in such a way that the root message
gets excluded, then a crash occurs:

$ mu find --threads --fields 'd s' '' date:2014-08-09/20:00..2014-08-09/21:00
**
ERROR:mu-container.c:117:mu_container_append_siblings: assertion failed: (c)
Aborted (core dumped)

Reported-by: Josiah Schwab <jschwab@gmail.com>
2014-08-15 10:10:39 +02:00
..
testdir * handle message-ids a bit specially, update unit tests 2013-10-13 20:05:29 +03:00
testdir2 * fix matching backslashes, add some tests 2013-05-27 05:49:43 -07:00
testdir3 tests: threads: Test if grandchild message promotes only its subthread 2014-07-15 07:24:47 +02:00
testdir4 * lib/tests: support X-Label and X-Keywords, update unit test 2012-08-09 10:01:06 +03:00
Makefile.am mu: Test splicing child containers when there is only one thread 2014-08-15 10:10:39 +02:00
dummy.cc * refactoring: split src/ into mu/ and lib/ 2012-05-21 09:25:53 +03:00
test-mu-common.c * lib: fix broken unit test 2014-01-15 21:27:18 +02:00
test-mu-common.h * update copyright years 2013-03-30 11:32:07 +02:00
test-mu-container.c mu: Test splicing child containers when there is only one thread 2014-08-15 10:10:39 +02:00
test-mu-date.c * update copyright years 2013-03-30 11:32:07 +02:00
test-mu-flags.c * update copyright years 2013-03-30 11:32:07 +02:00
test-mu-maildir.c * test-mu-maildir: fix regexp 2013-05-27 05:48:19 -07:00
test-mu-msg-fields.c * update copyright years 2013-03-30 11:32:07 +02:00
test-mu-msg.c * mu: unbreak unit test after flag changes (fixes #247) 2013-07-07 10:46:35 +03:00
test-mu-store.c * lib: fix broken unit test 2014-01-15 21:27:18 +02:00
test-mu-str.c * mu-str: treat '..' in non-range fields differently 2013-06-01 06:07:29 -07:00
test-mu-util.c * cleanup: drop gmime-2.4 support 2013-07-21 14:44:44 +03:00