+std::string mir_test_framework::udev_recordings_path()
+{
+ std::string bin_path = MIR_BUILD_PREFIX"/bin/udev_recordings";
+ std::string share_path = MIR_INSTALL_PREFIX"/share/udev_recordings";
+
+ if (boost::filesystem::exists(bin_path))
+ return bin_path;
+ else if (boost::filesystem::exists(share_path))
+ return share_path;
+
+ BOOST_THROW_EXCEPTION(std::runtime_error("Failed to find udev_recordings in standard search locations"));
+}
Can this really be the right behaviour? An installed test binary looks in the location where it was built? Even though a developer may be making changes there to compare results with.
~~~~
+ char const* RANDOM_DEVICE_PATH = "/dev/random";
+ int const WAIT_SECONDS = 30;
...
+ int const MAX_WAIT = 4;
+std::string mir_test_ framework: :udev_recording s_path( ) PREFIX" /bin/udev_ recordings" ; PREFIX" /share/ udev_recordings "; :filesystem: :exists( bin_path) ) :filesystem: :exists( share_path) ) EXCEPTION( std::runtime_ error(" Failed to find udev_recordings in standard search locations"));
+{
+ std::string bin_path = MIR_BUILD_
+ std::string share_path = MIR_INSTALL_
+
+ if (boost:
+ return bin_path;
+ else if (boost:
+ return share_path;
+
+ BOOST_THROW_
+}
Can this really be the right behaviour? An installed test binary looks in the location where it was built? Even though a developer may be making changes there to compare results with.
~~~~
+ char const* RANDOM_DEVICE_PATH = "/dev/random";
+ int const WAIT_SECONDS = 30;
...
+ int const MAX_WAIT = 4;
http:// unity.ubuntu. com/mir/ cppguide/ index.html? showone= Constant_ Names#Constant_ Names
~~~~
AFAICS libmircookie is only used by libmirserver.
What is the advantage to having a shared library over linking the code directly into libmirserver?
~~~~
/mir/tests/ acceptance- tests/test_ mir_cookie. cpp:39: 13: error: unused variable 'MAX_WAIT' [-Werror, -Wunused- const-variable]
int const MAX_WAIT = 4;
^
1 error generated.