saHpiWatchdogTimerSet/5.c erroneously fails if it
receives NOT_PRESENT when passing a bad watchdog num on
purpose.
Below is a patch that fixes this:
Index: src/watchdogtimer/saHpiWatchdogTimerSet/5.c
RCS file:
/cvsroot/saftest/saftest/HPI-B.01.01/src/watchdogtimer/saHpiWatchdogTimerSet/5.c,v
retrieving revision 1.10
diff -u -r1.10 5.c
--- src/watchdogtimer/saHpiWatchdogTimerSet/5.c 13 Jan
2006 08:32:38 -0000 1.10
+++ src/watchdogtimer/saHpiWatchdogTimerSet/5.c 21 Aug
2006 19:36:06 -0000
@@ -53,7 +53,7 @@
status = saHpiWatchdogTimerSet(sessionId,
resourceId,
BAD_WATCHDOG_NUM, &Watchdog);
- if (status != SA_ERR_HPI_NOT_PRESENT) {
+ if (status == SA_ERR_HPI_NOT_PRESENT) {
retval = SAF_TEST_PASS;
} else {
retval = SAF_TEST_FAIL;