forked from Kistler-Group/sdbus-cpp
fix: minor documentation and test improvements (#166)
* fix: minor documentation and test improvements * doc: add link to tests in standard interfaces tutorial secion * Update README.md Co-authored-by: Urs Ritzmann <urs.ritzmann@kistler.com> * Update docs/using-sdbus-c++.md Co-authored-by: Urs Ritzmann <urs.ritzmann@kistler.com> * Use cmake instead of make in build instructions Co-authored-by: Stanislav Angelovic <stanislav.angelovic@siemens.com> Co-authored-by: Urs Ritzmann <urs.ritzmann@kistler.com>
This commit is contained in:
committed by
GitHub
parent
dc6d55a282
commit
bbffcbf49e
@@ -54,8 +54,8 @@ TEST(Connection, CanRequestRegisteredDbusName)
|
||||
{
|
||||
auto connection = sdbus::createConnection();
|
||||
|
||||
ASSERT_NO_THROW(connection->requestName(INTERFACE_NAME));
|
||||
connection->releaseName(INTERFACE_NAME);
|
||||
ASSERT_NO_THROW(connection->requestName(INTERFACE_NAME))
|
||||
<< "Perhaps you've forgotten to copy `org.sdbuscpp.integrationtests.conf` file to `/etc/dbus-1/system.d` directory before running the tests?";
|
||||
}
|
||||
|
||||
TEST(Connection, CannotRequestNonregisteredDbusName)
|
||||
@@ -87,6 +87,4 @@ TEST(Connection, CanEnterAndLeaveEventLoop)
|
||||
connection->leaveEventLoop();
|
||||
|
||||
t.join();
|
||||
|
||||
connection->releaseName(INTERFACE_NAME);
|
||||
}
|
||||
|
@@ -51,6 +51,4 @@ TEST(AdaptorAndProxy, CanBeConstructedSuccesfully)
|
||||
|
||||
ASSERT_NO_THROW(TestAdaptor adaptor(*connection));
|
||||
ASSERT_NO_THROW(TestProxy proxy(INTERFACE_NAME, OBJECT_PATH));
|
||||
|
||||
connection->releaseName(INTERFACE_NAME);
|
||||
}
|
||||
|
Reference in New Issue
Block a user