blob: 8a7248900d9fa76fb1d13614642d841db9d5a398 [file] [log] [blame]
#include "internal_sys_mock.hpp"
#include "ipmi_handler.hpp"
namespace host_tool
{
using ::testing::_;
using ::testing::Return;
TEST(IpmiHandlerTest, OpenAllFails)
{
/* Open against all device files fail. */
internal::InternalSysMock sysMock;
IpmiHandler ipmi(&sysMock);
EXPECT_CALL(sysMock, open(_, _)).WillRepeatedly(Return(-1));
EXPECT_EQ(false, ipmi.open());
}
} // namespace host_tool