Skip to content

Commit

Permalink
Disable stack trace collection on Windows/ws for the cpp/Ice/timeout …
Browse files Browse the repository at this point in the history
…test (#3158)
  • Loading branch information
bernardnormier authored Nov 16, 2024
1 parent 54548fe commit 8911c92
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions cpp/test/Ice/timeout/Server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,21 @@ Server::run(int argc, char** argv)
{
Ice::PropertiesPtr properties = createTestProperties(argc, argv);

//
// The client sends large messages to cause the transport
// buffers to fill up.
//
// The client sends large messages to cause the transport buffers to fill up.
properties->setProperty("Ice.MessageSizeMax", "20000");

//
// Limit the recv buffer size, this test relies on the socket
// send() blocking after sending a given amount of data.
//
// Limit the recv buffer size, this test relies on the socket send() blocking after sending a given amount of data.
properties->setProperty("Ice.TCP.RcvSize", "50000");

#ifdef _WIN32
// Turn off stack trace collection and printing on Windows with ws(s): they slow down the logging so much that this
// test can fail. See #3048.
if (getTestProtocol(properties).find("ws") == 0)
{
properties->setProperty("Ice.PrintStackTraces", "0");
}
#endif

Ice::CommunicatorHolder communicator = initialize(argc, argv, properties);

communicator->getProperties()->setProperty("TestAdapter.Endpoints", getTestEndpoint());
Expand Down

0 comments on commit 8911c92

Please sign in to comment.