4 #define BOOST_TEST_DYN_LINK
5 #define BOOST_TEST_MODULE RegisterAccessSpecifierTest
6 #include <boost/test/unit_test.hpp>
7 using namespace boost::unit_test_framework;
13 BOOST_AUTO_TEST_SUITE(RegisterAccessSpecifierTestSuite)
17 dev.
open(
"(pci:pcieunidummys6?map=registerAccess.map)");
23 BOOST_CHECK(accessor.isReadOnly());
24 BOOST_CHECK(!accessor.isWriteable());
25 BOOST_CHECK(accessor.isReadable());
31 BOOST_CHECK(!accessor.isReadOnly());
32 BOOST_CHECK(accessor.isWriteable());
33 BOOST_CHECK(accessor.isReadable());
39 BOOST_CHECK(!accessor.isReadOnly());
40 BOOST_CHECK(accessor.isWriteable());
41 BOOST_CHECK(!accessor.isReadable());
47 BOOST_CHECK(!accessor.isReadOnly());
48 BOOST_CHECK(accessor.isWriteable());
49 BOOST_CHECK(accessor.isReadable());
53 BOOST_AUTO_TEST_SUITE_END()