Red Hat Bugzilla – Bug 508231
SAF Test lck: saLckResourceLockAsync/9.c
Last modified: 2009-06-29 15:22:35 EDT
Description of problem:
Test in SUBJ doesn't work
Version-Release number of selected component (if applicable):
Steps to Reproduce:
Test runs ok
It looks like saLckResourceUnlock doesn't cancel pending request lock
This is a bug in the saftest code. The test code assumes that if select returns
a value > 0, a callback has been made. That isn't true, at least for OpenAIS. I
will attach a new version of the test case that doesn't depend on select to
determine is a callback has been made.
Created attachment 349828 [details]
Don't assume a callback has been made until it is actually called.
This code appears to fix the test case in question.
Closing this as fixed upstream. OpenAIS lock service now has code to cancel/skip callbacks for resources that have been closed with pending callbacks. Fix for saftest code it attached above.