nsMsgCopyService::CopyMessages not working as intended in xpcshell tests on Mac OS X



MailNews Core
9 years ago
9 years ago


(Reporter: sid0, Unassigned)


Mac OS X

Firefox Tracking Flags

(Not tracked)



(3 attachments)

Created attachment 325531 [details]
Test to check this, with a couple of message files

While testing the unit test uploaded at bug 436880, Standard8 found that it failed on his OS X build. The problem was finally traced to the CopyMessages function in nsMsgCopyService seemingly misbehaving and not working correctly. The function works correctly on my Windows trunk build, but not on OS X. (Later, beckley confirmed the same on both Windows and OS X.)

When an array of one message is passed to the function, it works as expected. However, then there's an array of two messages, only the first message seems to be copied, and then duplicated, in the destination message folder.

I've attached a simple test here to check this. To test this, apply the patch (-p1) to trunk, then go to $objdir/mailnews/base/test and run |make && make check|.

Comment 1

9 years ago
Created attachment 325532 [details]
Log on Windows (test succeeds)

This is from my trunk build on Windows Vista.

As can be seen, the source message IDs and the destination IDs are both unique.

Comment 2

9 years ago
Created attachment 325533 [details]
Log on Mac OS X (test fails)

Thanks to Standard8 for providing the log.

The source message IDs seem to be fine, but the destination IDs are both the same, so the do_check_neq fails.

Standard8 also reported that the mbox had just one message in it, and not both.

(This hasn't been tested on Linux so far.)

Comment 3

9 years ago
Fixed by attachments 326410 and 326411 in bug 436880.
Last Resolved: 9 years ago
Resolution: --- → FIXED


9 years ago
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.