<feed xmlns='http://www.w3.org/2005/Atom'>
<title>notmuch/test/T050-new.sh, branch 0.26.2</title>
<subtitle>thread-based email index, search, and tagging</subtitle>
<id>https://git.notmuchmail.org/git/notmuch/atom?h=0.26.2</id>
<link rel='self' href='https://git.notmuchmail.org/git/notmuch/atom?h=0.26.2'/>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/'/>
<updated>2018-04-24T02:00:20Z</updated>
<entry>
<title>lib: choose oldest message when breaking reference loops</title>
<updated>2018-04-24T02:00:20Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2018-04-20T14:59:48Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=491b1f4b4082bee18418942846ec6508856be7b4'/>
<id>urn:sha1:491b1f4b4082bee18418942846ec6508856be7b4</id>
<content type='text'>
This preserves a sensible thread order
</content>
</entry>
<entry>
<title>test: add known broken test for thread ordering from a loop</title>
<updated>2018-04-24T02:00:20Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2018-04-14T01:46:09Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=4e085b6d92909b8f6d4a4b18ccd97fac8b7df620'/>
<id>urn:sha1:4e085b6d92909b8f6d4a4b18ccd97fac8b7df620</id>
<content type='text'>
The previous loop handling code chooses the last message in the
message list, which turns out to be the last in date order.
See the comment in _notmuch_thread_create.
</content>
</entry>
<entry>
<title>lib: break reference loop by choosing arbitrary top level msg</title>
<updated>2018-04-20T14:23:31Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2018-04-14T01:08:05Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=9293d6da27494d7b607c945c6678bc890749b94f'/>
<id>urn:sha1:9293d6da27494d7b607c945c6678bc890749b94f</id>
<content type='text'>
Other parts of notmuch (e.g. notmuch show) expect each thread to
contain at least one top level message, and crash if this expectation
is not met.
</content>
</entry>
<entry>
<title>test: add known broken test for indexing an In-Reply-To loop.</title>
<updated>2018-04-20T14:23:31Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2018-03-20T21:22:35Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=ab55ca8e0a84b8e00e42860fa0025c1ae86b4478'/>
<id>urn:sha1:ab55ca8e0a84b8e00e42860fa0025c1ae86b4478</id>
<content type='text'>
This documents the bug discussed in

     id:87d10042pu.fsf@curie.anarc.at
</content>
</entry>
<entry>
<title>test: test regexp based new.ignore</title>
<updated>2017-12-15T11:55:02Z</updated>
<author>
<name>Jani Nikula</name>
<email>jani@nikula.org</email>
</author>
<published>2017-10-14T13:16:28Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=7354d6d8f6fe413097e4fe3dc450594f016334a9'/>
<id>urn:sha1:7354d6d8f6fe413097e4fe3dc450594f016334a9</id>
<content type='text'>
Just some basics.
</content>
</entry>
<entry>
<title>test: use $(dirname "$0") for sourcing test-lib.sh</title>
<updated>2017-10-20T22:52:49Z</updated>
<author>
<name>Jani Nikula</name>
<email>jani@nikula.org</email>
</author>
<published>2017-09-25T20:38:19Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=a863de1e43ee34f6f5794a2759fdceb287e851aa'/>
<id>urn:sha1:a863de1e43ee34f6f5794a2759fdceb287e851aa</id>
<content type='text'>
Don't assume the tests are always run from within the source tree.
</content>
</entry>
<entry>
<title>test: Fix T050-new.sh on some Travis CI machines</title>
<updated>2017-08-30T10:24:44Z</updated>
<author>
<name>Vladimir Panteleev</name>
<email>notmuch@thecybershadow.net</email>
</author>
<published>2017-08-17T17:51:42Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=95b82bb326eccbc9a1e683b5764b93795b166ca2'/>
<id>urn:sha1:95b82bb326eccbc9a1e683b5764b93795b166ca2</id>
<content type='text'>
On some system configurations, setting a breakpoint on the "add_file"
function then issuing "continue" in gdb causes the debugger to
seemingly jump over the add_file invocation. This results in a test
failure, as the "Handle files vanishing between scandir and add_file"
subtest expects add_file to be called and fail due to the vanishing
file. The compiler optimization level also plays a role - the problem
can be reproduced with CFLAGS having -O2 but not -Og.

This problem was observed manifesting as a test failure on Travis CI
configured with "dist: trusty" and "sudo: false". It was not
reproducible on a local Docker image of Travis' runtime environment,
so Travis' virtualization infrastructure likely plays a role as well.

* T050-new.sh: Breakpoint notmuch_database_add_message instead of
  add_file to the same effect, and avoid bad gdb behaviour on Travis
  CI.

Amended by db:

	s/notmuch_database_add_message/notmuch_database_index_file/

Somehow the wrapper function doesn't work as a breakpoint; perhaps due
to inlining.
</content>
</entry>
<entry>
<title>test: require test_begin_subtest before test_expect_code</title>
<updated>2017-03-09T13:03:40Z</updated>
<author>
<name>Jani Nikula</name>
<email>jani@nikula.org</email>
</author>
<published>2017-02-26T13:43:01Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=0497d695ca796c4d19ad5ec08788bbb1f400c58c'/>
<id>urn:sha1:0497d695ca796c4d19ad5ec08788bbb1f400c58c</id>
<content type='text'>
Unify the subtests by requiring test_begin_subtest before
test_expect_code. (Similar change for test_expect_success has already
been done.)

This increases clarity in the test scripts by having a separate line
for the start of the subtest with the heading, and makes it possible
to simplify the test infrastructure by making all subtests similar.
</content>
</entry>
<entry>
<title>test: allow user to choose which gdb to run tests with</title>
<updated>2017-01-08T14:50:28Z</updated>
<author>
<name>Tomi Ollila</name>
<email>tomi.ollila@iki.fi</email>
</author>
<published>2017-01-07T09:47:27Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=95efe2d4849f218fffd232dd6e10011f0f837878'/>
<id>urn:sha1:95efe2d4849f218fffd232dd6e10011f0f837878</id>
<content type='text'>
The variable used for selecting gdb is TEST_GDB, consistent with
TEST_CC and TEST_EMACS{,CLIENT}.
</content>
</entry>
<entry>
<title>test: check the handling of files vanishing between scandir and indexing</title>
<updated>2016-12-03T11:18:49Z</updated>
<author>
<name>Jani Nikula</name>
<email>jani@nikula.org</email>
</author>
<published>2016-11-27T09:59:34Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=e682c8f8f84fe5f7af30280bd8ea437772e154fa'/>
<id>urn:sha1:e682c8f8f84fe5f7af30280bd8ea437772e154fa</id>
<content type='text'>
Add a file for scandir to find, but use gdb to remove it before it
gets indexed.
</content>
</entry>
</feed>
