Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions tests/functests/MultipleLogManagersTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@

#include "NullObjects.hpp"

#if defined(__APPLE__)
#include <TargetConditionals.h>
#endif

#if defined __has_include && defined(HAVE_MAT_PRIVACYGUARD)
#if __has_include("modules/privacyguard/PrivacyGuard.hpp")
#include "modules/privacyguard/PrivacyGuard.hpp"
Expand All @@ -36,6 +40,15 @@
using namespace testing;
using namespace MAT;

// MultipleLogManagersTests stand up an in-process HttpServer on a loopback port
// and run multiple concurrent LogManager instances against it. That pattern
// hangs/fails inside the iOS simulator sandbox (the loopback uploads stall),
// which previously left the iOS CI job to sit until its 60-minute timeout. The
// behavior is still exercised on the desktop and macOS targets; exclude the
// whole suite from the iOS build. (GTEST_SKIP in SetUp is not honored by the
// iOS xctest gtest wrapper, so the exclusion must be at compile time.)
#if !defined(TARGET_OS_IPHONE) || !TARGET_OS_IPHONE

class RequestHandler : public HttpServer::Callback
{
public:
Expand Down Expand Up @@ -292,5 +305,7 @@ TEST_F(MultipleLogManagersTests, PrivacyGuardSharedWithTwoInstancesCoexist)
}
#endif //END HAVE_MAT_PRIVACYGUARD

#endif // !TARGET_OS_IPHONE (suite excluded on iOS; see note above)

#endif // HAVE_MAT_DEFAULT_HTTP_CLIENT

Loading