Closed Bug 1053621 Opened 11 years ago Closed 11 years ago

Remove uses of PR_NOT_REACHED from the mozilla::pkix test suite

Categories

(Core :: Security: PSM, defect)

defect
Not set
trivial

Tracking

()

RESOLVED FIXED
mozilla34

People

(Reporter: briansmith, Assigned: briansmith)

Details

Attachments

(1 file)

No description provided.
Attachment #8472778 - Flags: review?(dkeeler)
Comment on attachment 8472778 [details] [diff] [review] no-more-PR_NOT_REACHED.patch Review of attachment 8472778 [details] [diff] [review]: ----------------------------------------------------------------- ::: security/pkix/test/lib/pkixtestutil.cpp @@ +1412,5 @@ > der::CONTEXT_SPECIFIC | der::CONSTRUCTED | 1, > revocationTime); > } > default: > + assert(false); Any particular reason we don't want to continue to abort() here?
Attachment #8472778 - Flags: review?(dkeeler) → review+
Comment on attachment 8472778 [details] [diff] [review] no-more-PR_NOT_REACHED.patch Review of attachment 8472778 [details] [diff] [review]: ----------------------------------------------------------------- ::: security/pkix/test/lib/pkixtestutil.cpp @@ +1412,5 @@ > der::CONTEXT_SPECIFIC | der::CONSTRUCTED | 1, > revocationTime); > } > default: > + assert(false); In general, we (should) only call abort when we don't have another way of indicating an error has occurred. Here, returning nullptr is the way to indicate an error has occurred.
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: