hpitest make fails on RHEL7 with below error:
depbase=echo src/tests/resource/saHpiResourceFailedRemove/FailedRemove.o | sed 's|[^/]*$|.deps/&|;s|.o$||';\ g++ -DHAVE_CONFIG_H -I. -I./include -I./src/framework -I./src/hpi -I./src/util -I./src/helper -I./src/tests -I./src/tests/alarm -I./src/tests/annunciator -I./src/tests/configuration -I./src/tests/control -I./src/tests/domain -I./src/tests/eventlog -I./src/tests/events -I./src/tests/fumi -I./src/tests/hotswap -I./src/tests/inventory -I./src/tests/power -I./src/tests/rdr -I./src/tests/reset -I./src/tests/resource -I./src/tests/sensor -I./src/tests/session -I./src/tests/version -I./src/tests/watchdogtimer -Wextra -Wall -Wshadow -Woverloaded-virtual -O2 -pthread -MT src/tests/resource/saHpiResourceFailedRemove/FailedRemove.o -MD -MP -MF $depbase.Tpo -c -o src/tests/resource/saHpiResourceFailedRemove/FailedRemove.o src/tests/resource/saHpiResourceFailedRemove/FailedRemove.cc &&\ mv -f $depbase.Tpo $depbase.Po
src/tests/resource/saHpiResourceFailedRemove/FailedRemove.cc: In member function âHpiTestStatus ns_saHpiResourceFailedRemove::FailedRemove::testFailedResources(SaHpiSessionIdT)â:
src/tests/resource/saHpiResourceFailedRemove/FailedRemove.cc:200:26: error: âsleepâ was not declared in this scope
make[1]: [src/tests/resource/saHpiResourceFailedRemove/FailedRemove.o] Error 1
make[1]: Leaving directory `/root/praveen/OpenHPI_3.5.0_testing/hpibtest'
make: [all] Error 2
Modifying the title as - hpitest make fails on RHEL7 with error
Attaching the patch to care of above mentioned make error. After applying this patch the error goes off.
Diff:
Fixed with Check-in #17
Fixed with checkin #17