Menu

#934 saHpiIdrFieldGet/13.c returns UNRESOLVED in error

open
5
2006-08-29
2006-08-29
No

This test, saHpiIdrFieldGet/13, returns UNRESOLVED by
mistake.
It tests the API call by adding an Idr field and then
retreiving the Field with saHpiIdrFieldGet.
Problem is that the field it adds has invalid
characters in its buffer according to the buffer type
selected.
The buffer type selected is SAHPI_TL_TYPE_ASCII6, which
only allows characters ranging from 0x20-0x5f.
The string ("Test String") in the buffer has character
values:
['0x54', '0x65', '0x73', '0x74', '0x20', '0x53',
'0x74', '0x72', '0x69', '0x6e', '0x67']

This clearly shows that the string in the buffer has
character values out of range for the buffer type
specified. Thus, the OpenHPI implementation returns
INVALID_PARAMS from saHpiIdrFieldAdd correctly, but
this is not what the test expects so it exits with an
UNRESOLVED status code.

To fix this test case, the buffer type should be
changed to SAHPI_TL_TYPE_TEXT.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB