saHpiSensorThresholdsSet is tested by trying to set a
negative hysteresis and expecting INVALID_DATA from
the call.
The problem with the test is that it assumes that the
sensor has no MAX/MIN ranges set.
The test fails on a sensor that has this ranges set
and returns INVALID_CMD, per the spec page 82, if the
value being set is outside of this range.
The test should not only expect INVALID_DATA if the
sensor has ranges set, it should also look out for
INVALID_CMD, or find a sensor with no MIN/MAX ranges
set to perform the test.
See page 28 of the spec, first sentence, for what to
expect when an api could return more than one error.
Logged In: NO
This is actually invalid. Implementation should not do a
MAX/MIN check on hysteresis values.