4#define BOOST_TEST_DYN_LINK
5#define BOOST_TEST_MODULE PcieErrorHandling
6#include <boost/test/unit_test.hpp>
7using namespace boost::unit_test_framework;
35 BOOST_CHECK(reg != 0);
38 std::cout <<
"Please now pull the hotplug handle or shut the board down via the MCH, then press ENTER...";
39 std::getline(std::cin, line);
47 std::cout <<
"Please now push the hotplug handle back in or start the board via the MCH, then press ENTER...";
48 std::getline(std::cin, line);
56 BOOST_CHECK(reg != 0);
Class allows to read/write registers from device.
ScalarRegisterAccessor< UserType > getScalarRegisterAccessor(const RegisterPath ®isterPathName, size_t wordOffsetInRegister=0, const AccessModeFlags &flags=AccessModeFlags({})) const
Get a ScalarRegisterObject object for the given register.
bool isFunctional() const
Return wether a device is working as intended, usually this means it is opened and does not have any ...
void open(std::string const &aliasName)
Open a device by the given alias name from the DMAP file.
Exception thrown when a runtime error has occured.
void setDMapFilePath(std::string dmapFilePath)
Set the location of the dmap file.
BOOST_AUTO_TEST_CASE(testPcieErrorHandling)