Closed Bug 551129 Opened 14 years ago Closed 14 years ago

Restore tests from TestPermanentAtoms.cpp

Categories

(Core :: XPCOM, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.9.3a3

People

(Reporter: sicking, Assigned: sicking)

References

Details

(Keywords: assertion)

Attachments

(1 file)

Attached patch Patch to fixSplinter Review
In bug 534136 I removed TestPermanentAtoms.cpp from the build (but not from the tree) since it was using outdated API and I was rewriting atom tests anyway.

However upon further inspection the things that were tested there didn't actually get tested in the new tests. Specifically NS_NewPermanentAtom doesn't have any tests.

Patch attached that

* Adds the same tests for NS_NewPermanentAtom that TestPermanentAtoms.cpp had.
* Kills off TestPermanentAtoms.cpp from the tree.
* Disables asserting tests in debug builds. See bug 549098 for why.
Attachment #431312 - Flags: review?(jst)
Attachment #431312 - Flags: review?(jst) → review+
Checked in, thanks for the quick review

http://hg.mozilla.org/mozilla-central/rev/120330e515e6
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Assignee: nobody → jonas
Flags: in-testsuite+
Target Milestone: --- → mozilla1.9.3a3
Blocks: 551153, 534136
Depends on: 549100
Keywords: assertion
Depends on: 552798
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: