T050-new and T060-count fail if gdb prints a warning

Dan Čermák dan.cermak at posteo.net
Tue Mar 10 08:43:43 PDT 2020


Hi list,

I have encountered a test failure caused by the T050-new and T060-count
tests in the latest openSUSE-Tumbleweed rebuild with Python 3.8 instead
of Python 3.7. Both tests die with:

--8<---------------cut here---------------start------------->8---
T050-new: Testing "notmuch new" in several variations
 FAIL   Handle files vanishing between scandir and add_file
       --- T050-new.36.EXPECTED        2020-03-10 12:49:34.388407058 +0000
       +++ T050-new.36.OUTPUT  2020-03-10 12:49:34.388407058 +0000
       @@ -1,3 +1,7 @@
       +/usr/share/gdb/python/gdb/command/prompt.py:48: SyntaxWarning: "is not" with a literal. Did you mean "!="?
       +  if self.value is not '':
       +/usr/share/gdb/python/gdb/command/prompt.py:60: SyntaxWarning: "is not" with a literal. Did you mean "!="?
       +  if self.value is not '':
        Unexpected error with file /home/abuild/rpmbuild/BUILD/notmuch-0.29.3/test/tmp.T050-new/mail/vanish
        add_file: Something went wrong trying to read or write a file
        Error opening /home/abuild/rpmbuild/BUILD/notmuch-0.29.3/test/tmp.T050-new/mail/vanish: No such file or directory
--8<---------------cut here---------------end--------------->8---

which I think is caused by gdb 8 using some odd Python syntax and is
completely unrelated to notmuch.

The solution is of course to fix this in gdb (e.g. by updating to gdb
9), but the more general question is: can notmuch's testsuite do
something to avoid issues like this altogether?


Cheers,

Dan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20200310/4a10f329/attachment.sig>


More information about the notmuch mailing list