Menu

#936 saHpiAnnunciatorAcknowledge/6.c returns UNRESOLVED in error

open
5
2006-08-30
2006-08-30
No

This tests tries to find an annunciator entry id that
does not exist for the annunciator, then it tries to
acknowledge that entry to see if it gets NOT_PRESENT back.
If it does, it pases the test.

The problem is in the functions that it uses to get an
entry id that does not exist withing the annunciator.

The test uses getBadEntryId() to get a bogus entry id
and it expects a return of SA_OK from that function
meaning that it got a proper bad entry id.
The bug is that the getBadEntryId() function (which in
turn makes use of the containsEntryId() function)
returns NOT_PRESENT when it finds a proper bad entry
id, instead of SA_OK.

So to fix this, either the test should expect
NOT_PRESENT from the getBadEntryId() call, or
getBadEntryId() should return SA_OK when it finds a bad
entry id.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB