Menu

#940 saHpiSensorThresholdsSet/9.c returns FAIL in error

open
5
2006-09-01
2006-09-01
No

saHpiSensorThresholdsSet/9.c returns FAIL in error

It calls saHpiSensorThresholdsSet on a sensor with
inaccessible threholds and also passing an
uninitialized threshold.

The test expects INVALID_CMD because of the
inaccessible threholds property of the sensor.
The problem is that it should also expect any other
return codes regarding bad values in the thresholds due
to its uninitialized state.

On the OpenHPI implementation, this test returns FAIL
due to getting INVALID_DATA from
saHpiSensorThresholdsSet. But this is a correct return
since the thresholds contains a bad sensor reading type.

Page 28 of the spec, first sentence, says "The order of
the return codes is undefined, Thus, if more than one
error occurs, any one of the possible return codes may
be returned."

So, to fix this test, the thresholds must be properly
initialized in order to correctly expect _only_ the
INVALID_CMD return code.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB