unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* T060-count and T070-insert fail when built without -g
@ 2019-09-30 12:34 dan.cermak
  2019-09-30 14:09 ` David Bremner
  0 siblings, 1 reply; 2+ messages in thread
From: dan.cermak @ 2019-09-30 12:34 UTC (permalink / raw)
  To: notmuch

[-- Attachment #1: Type: text/plain, Size: 3928 bytes --]

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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: T060-count and T070-insert fail when built without -g
  2019-09-30 12:34 T060-count and T070-insert fail when built without -g dan.cermak
@ 2019-09-30 14:09 ` David Bremner
  0 siblings, 0 replies; 2+ messages in thread
From: David Bremner @ 2019-09-30 14:09 UTC (permalink / raw)
  To: dan.cermak, notmuch

dan.cermak@posteo.net writes:

> 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):
>

Yes, it's expected that the version of notmuch used for the test suite
has debugging symbols.  In Debian we just strip them before
installation. Can you do something like that in openSUSE?

d

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-09-30 14:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-09-30 12:34 T060-count and T070-insert fail when built without -g dan.cermak
2019-09-30 14:09 ` David Bremner

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).