Bug 39289

Summary: test suite additions for trylock functions
Product: APR Reporter: Chris Darroch <chrisd>
Component: APR testAssignee: Apache Portable Runtime bugs mailinglist <bugs>
Status: NEW ---    
Severity: enhancement CC: chrisd
Priority: P2 Keywords: PatchAvailable
Version: HEAD   
Target Milestone: ---   
Hardware: All   
OS: All   
Attachments: test process trylock functions as well
test global trylock functions as well

Description Chris Darroch 2006-04-12 20:59:55 UTC
Here are some patches for adding tests of the apr_proc_mutex_trylock()
and apr_global_mutex_trylock() functions to the test suite.

The global mutex tests won't run yet because that set of files
(testglobalmutex.c and globalmutexchild.c) are disabled in abts_tests.h;
if you force them to run, my experience on Linux is that
apr_global_mutex_create() using fcntl locks fails with EEXIST.

This works follows on the heels of bug #38758.
Comment 1 Chris Darroch 2006-04-12 21:00:37 UTC
Created attachment 18085 [details]
test process trylock functions as well
Comment 2 Chris Darroch 2006-04-12 21:01:45 UTC
Created attachment 18086 [details]
test global trylock functions as well

This stuff obviously doesn't actually run as part of "make check".
Comment 3 William A. Rowe Jr. 2006-09-19 19:54:44 UTC
Mass reassign the 44 open apr-bugs to apr bug list
Comment 4 Igor Galić 2011-05-29 15:17:09 UTC
By now, apr_proc_mutex_trylock() is tested: r397188
but apr_global_mutex_trylock() is not.