]> git.notmuchmail.org Git - notmuch/commit
test/thread-order: more robust loop exit in case of broken input
authorTomi Ollila <tomi.ollila@iki.fi>
Sun, 29 Mar 2015 15:30:36 +0000 (18:30 +0300)
committerDavid Bremner <david@tethera.net>
Fri, 3 Apr 2015 00:27:57 +0000 (09:27 +0900)
commit3d1483df12050dec8a2df95249576162a0e79302
tree893c8d6dbf3ce39f077c22fb9571ea7c2a992186
parent0fa9cf75e51957f775fd74a7ca266e7a8edd7941
test/thread-order: more robust loop exit in case of broken input

When creating $THREADS data it may end of not having 'None' at all
or the numbers in line output yields a loop.

To avoid loop the value in current array index is set to 'None'
so that if the same item is reached again the loop will end.

Also empty string as next array index will end the loop.
test/T260-thread-order.sh