Skip to content

Commit

Permalink
Generalize multipleanalogsensorclient tests to use tcp, fast_tcp, shm…
Browse files Browse the repository at this point in the history
…em and unix_stream carriers
  • Loading branch information
traversaro committed Oct 25, 2024
1 parent 37e1aab commit 3ce42a9
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,13 @@ TEST_CASE("dev::MultipleAnalogSensorsClientTest", "[yarp::dev]")
YARP_REQUIRE_PLUGIN("multipleanalogsensorsserver", "device");
YARP_REQUIRE_PLUGIN("multipleanalogsensorsclient", "device");

//#if defined(DISABLE_FAILING_TESTS)
// YARP_SKIP_TEST("Skipping failing tests")
//#endif

Network::setLocalMode(true);

// Carrier used for connection
YARP_REQUIRE_PLUGIN("shmem", "carrier");
YARP_REQUIRE_PLUGIN("unix_stream", "carrier");
std::string carrier = GENERATE("tcp", "fast_tcp", "shmem", "unix_stream");

SECTION("Test the multiple analog sensors device on a single IMU (deferred attach)")
{
// We first allocate a single fakeImu
Expand Down Expand Up @@ -74,6 +75,7 @@ TEST_CASE("dev::MultipleAnalogSensorsClientTest", "[yarp::dev]")
pClient.put("local", "/test/mas/client");
// Increase timeout time because we don't know the load of the machine on which the test will run
pClient.put("timeout", 1.0);
pClient.put("carrier", carrier);

PolyDriver client;
REQUIRE(client.open(pClient)); // multipleanalogsensorsclient open reported successful
Expand Down

0 comments on commit 3ce42a9

Please sign in to comment.