Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
2 changes: 2 additions & 0 deletions analytics/integration_test/src/integration_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,8 @@ TEST_F(FirebaseAnalyticsTest, TestSetProperties) {
// The windows analytics DLL enables users to // set a callback function that is
// triggered when the underlying DLL logs something.
TEST_F(FirebaseAnalyticsTest, TestSetLogCallback) {
SKIP_TEST_ON_WINDOWS_X86;

std::promise<void> finishedPromise;
std::future<void> finished = finishedPromise.get_future();
bool log_callback_called = false;
Expand Down
14 changes: 14 additions & 0 deletions testing/test_framework/src/firebase_test_framework.h
Original file line number Diff line number Diff line change
Expand Up @@ -128,14 +128,28 @@ namespace firebase_test_framework {
#endif // (defined(TARGET_OS_OSX) && TARGET_OS_OSX)

#if defined(_WIN32)
// defined when the compilation target is 32-bit ARM, 64-bit ARM, x86, x64
#define SKIP_TEST_ON_WINDOWS \
{ \
app_framework::LogInfo("Skipping %s on Windows.", test_info_->name()); \
GTEST_SKIP(); \
return; \
}
#if !defined(_WIN64)
// _WIN64 when the target is 64-bit ARM, x64, or ARM64EC. Otherwise, undefined
// Using it then to tell when we are on windows but not a 64 bit target.
#define SKIP_TEST_ON_WINDOWS_X86 \
{ \
app_framework::LogInfo("Skipping %s on 32-bit Windows.", test_info_->name()); \
GTEST_SKIP(); \
return; \
}
#else
#define SKIP_TEST_ON_WINDOWS_X86 ((void)0)
#endif // !defined(_WIN64)
#else
#define SKIP_TEST_ON_WINDOWS ((void)0)
#define SKIP_TEST_ON_WINDOWS_X86 ((void)0)
#endif // defined(_WIN32)

#if defined(__linux__)
Expand Down
Loading