Bug 42318 - tests/testuser throws access exception while running on Win98
Summary: tests/testuser throws access exception while running on Win98
Status: RESOLVED FIXED
Alias: None
Product: APR
Classification: Unclassified
Component: APR test (show other bugs)
Version: HEAD
Hardware: Other other
: P2 normal (vote)
Target Milestone: ---
Assignee: Apache Portable Runtime bugs mailinglist
URL:
Keywords: PatchAvailable
Depends on:
Blocks:
 
Reported: 2007-05-02 09:30 UTC by Curt Arnold
Modified: 2007-06-29 16:26 UTC (History)
0 users



Attachments
Exit test after failing assertion (710 bytes, patch)
2007-05-02 09:33 UTC, Curt Arnold
Details | Diff
Exit test if null is returned. (711 bytes, patch)
2007-05-12 16:38 UTC, Curt Arnold
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Curt Arnold 2007-05-02 09:30:59 UTC
apr_gid_name and apr_uid_name return null on Win98 which causes the test to fail
an ABTS_PTR_NOTNULL assertion, however the test will continue after failing that
assertion which will cause a access violation in subsequent apr_gid_get or
apr_uid_get call.  The attached patch exits the test if the not null assertion
is failed avoiding the access violation.
Comment 1 Curt Arnold 2007-05-02 09:33:10 UTC
Created attachment 20091 [details]
Exit test after failing assertion
Comment 2 Davi Arnaut 2007-05-12 10:52:50 UTC
I think the patch is reversed..
Comment 3 Curt Arnold 2007-05-12 16:38:07 UTC
Created attachment 20187 [details]
Exit test if null is returned.

Previous patch was reversed.
Comment 4 Davi Arnaut 2007-06-04 11:28:25 UTC
Nitpicking: no tabs! :) (No need to update the patch, just a remainder)