Paul J Stevens wrote:
Ilja Booij wrote:

Paul J Stevens wrote:

First bug found with the testsuite I'm building using python (unittest+imaputil).


Strange... I haven't succeeded in reproducing this error.

Somehow an mboxid of 0 was returned instead of an mboxid of > 0


Indeed. And if I do a 'setacl "testaclbox" "testuser1" "slrw" ' in stead of a "slraw", I get a segfault.

It does not crash here..

The result was clean.


I'm attaching the test-script. Create two users:

dbmail-adduser a testuser1 '{md5:}test' 0 0 [EMAIL PROTECTED]
dbmail-adduser a testuser2 '{md5:}test' 0 0 [EMAIL PROTECTED]

on host 'mail' and run....

It runs just fine.. No problem whatsoever.

It's beginning to sound like a memory error to me. I'll try some checks with valgrind. Can you send a log of the whole session up until the point it segfaults?

BTW, great test script. We should have more of these for our daemons (and dbmail-smtp). I love the way these things can be coded in Python: concise and clear.

Does everyone agree that we should put this test-script (and possibly other test-scripts) into the source tree? Automated testing will be very useful.

Ilja



Reply via email to