Hi list,
I've received a report that the notmuch test suite fails when compiled
without debugging symbols on openSUSE. I am able to reproduce the issue
on the master branch (commit 74a1b5ac65b31f7ebc1258b259b8c355023e21b4):
# note the missing -g:
$ export 'CFLAGS=-O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -flto=12'
$ export 'CXXFLAGS=-O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -flto=12'
$ ./configure
$ make download-test-databases
$ make check
results in this error:
T060-count: Testing "notmuch count" for messages and threads
FAIL error message from query_search_messages
--- T060-count.14.EXPECTED 2019-09-30 12:15:29.518585353 +0000
+++ T060-count.14.OUTPUT.clean 2019-09-30 12:15:29.518585353 +0000
@@ -1,3 +0,0 @@
-notmuch count: A Xapian exception occurred
-A Xapian exception occurred performing query
-Query string was: *
Checking out 0.29.1 gives this additional failure:
T070-insert: Testing "notmuch insert"
FAIL success exit with --keep when index_file returns FILE_NOT_EMAIL
exit code 1, expected 0 gdb --batch-silent --return-child-result -ex 'set args insert --keep < /home/dan/packages/git.notmuchmail.org/git/notmuch/test/tmp.T070-insert/mail/msg-023' -x index-file-FILE_NOT_EMAIL.gdb notmuch
FAIL success exit with --keep when index_file returns READ_ONLY_DATABASE
exit code 1, expected 0 gdb --batch-silent --return-child-result -ex 'set args insert --keep < /home/dan/packages/git.notmuchmail.org/git/notmuch/test/tmp.T070-insert/mail/msg-023' -x index-file-READ_ONLY_DATABASE.gdb notmuch
FAIL success exit with --keep when index_file returns UPGRADE_REQUIRED
exit code 1, expected 0 gdb --batch-silent --return-child-result -ex 'set args insert --keep < /home/dan/packages/git.notmuchmail.org/git/notmuch/test/tmp.T070-insert/mail/msg-023' -x index-file-UPGRADE_REQUIRED.gdb notmuch
FAIL success exit with --keep when index_file returns PATH_ERROR
exit code 1, expected 0 gdb --batch-silent --return-child-result -ex 'set args insert --keep < /home/dan/packages/git.notmuchmail.org/git/notmuch/test/tmp.T070-insert/mail/msg-023' -x index-file-PATH_ERROR.gdb notmuch
FAIL EX_TEMPFAIL when index_file returns OUT_OF_MEMORY
exit code 1, expected 75 gdb --batch-silent --return-child-result -ex 'set args insert < /home/dan/packages/git.notmuchmail.org/git/notmuch/test/tmp.T070-insert/mail/msg-023' -x index-file-OUT_OF_MEMORY.gdb notmuch
FAIL success exit with --keep when index_file returns OUT_OF_MEMORY
exit code 1, expected 0 gdb --batch-silent --return-child-result -ex 'set args insert --keep < /home/dan/packages/git.notmuchmail.org/git/notmuch/test/tmp.T070-insert/mail/msg-023' -x index-file-OUT_OF_MEMORY.gdb notmuch
FAIL EX_TEMPFAIL when index_file returns XAPIAN_EXCEPTION
exit code 1, expected 75 gdb --batch-silent --return-child-result -ex 'set args insert < /home/dan/packages/git.notmuchmail.org/git/notmuch/test/tmp.T070-insert/mail/msg-023' -x index-file-XAPIAN_EXCEPTION.gdb notmuch
FAIL success exit with --keep when index_file returns XAPIAN_EXCEPTION
exit code 1, expected 0 gdb --batch-silent --return-child-result -ex 'set args insert --keep < /home/dan/packages/git.notmuchmail.org/git/notmuch/test/tmp.T070-insert/mail/msg-023' -x index-file-XAPIAN_EXCEPTION.gdb notmuch
Are these failures expected? If yes, I would skip these when we are not
building a debug package. If not, then consider this as a bug report ;-)
Thanks in advance,
Dan