Bug 39289 - test suite additions for trylock functions
Summary: test suite additions for trylock functions
Status: NEW
Alias: None
Product: APR
Classification: Unclassified
Component: APR test (show other bugs)
Version: HEAD
Hardware: All All
: P2 enhancement (vote)
Target Milestone: ---
Assignee: Apache Portable Runtime bugs mailinglist
URL:
Keywords: PatchAvailable
Depends on:
Blocks:
 
Reported: 2006-04-12 20:59 UTC by Chris Darroch
Modified: 2011-05-29 15:17 UTC (History)
1 user (show)



Attachments
test process trylock functions as well (2.41 KB, patch)
2006-04-12 21:00 UTC, Chris Darroch
Details | Diff
test global trylock functions as well (4.39 KB, patch)
2006-04-12 21:01 UTC, Chris Darroch
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.