Skip to content

Commit 1a4f0aa

Browse files
committed
[test] disable failing DLM and ScopeReflection test on Win32
1 parent d9c02fd commit 1a4f0aa

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

unittests/CppInterOp/DynamicLibraryManagerTest.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ TEST(DynamicLibraryManagerTest, Sanity) {
2222
#ifdef EMSCRIPTEN
2323
GTEST_SKIP() << "Test fails for Emscipten builds";
2424
#endif
25+
26+
#if CLANG_VERSION_MAJOR == 18 && defined(CPPINTEROP_USE_CLING) && \
27+
defined(_WIN32)
28+
GTEST_SKIP() << "Test fails with Cling on Windows";
29+
#endif
30+
2531
EXPECT_TRUE(Cpp::CreateInterpreter());
2632
EXPECT_FALSE(Cpp::GetFunctionAddress("ret_zero"));
2733

unittests/CppInterOp/ScopeReflectionTest.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44
#include "clang-c/CXCppInterOp.h"
55

66
#include "clang/AST/ASTContext.h"
7-
#include "clang/Interpreter/CppInterOp.h"
7+
#include "clang/Basic/Version.h"
88
#include "clang/Frontend/CompilerInstance.h"
9+
#include "clang/Interpreter/CppInterOp.h"
910
#include "clang/Sema/Sema.h"
1011

1112
#include "clang/AST/ASTDumper.h"
@@ -163,6 +164,11 @@ TEST(ScopeReflectionTest, SizeOf) {
163164

164165

165166
TEST(ScopeReflectionTest, IsBuiltin) {
167+
#if CLANG_VERSION_MAJOR == 18 && defined(CPPINTEROP_USE_CLING) && \
168+
defined(_WIN32) && (defined(_M_ARM) || defined(_M_ARM64))
169+
GTEST_SKIP() << "Test fails with Cling on Windows on ARM";
170+
#endif
171+
166172
// static std::set<std::string> g_builtins =
167173
// {"bool", "char", "signed char", "unsigned char", "wchar_t", "short", "unsigned short",
168174
// "int", "unsigned int", "long", "unsigned long", "long long", "unsigned long long",

0 commit comments

Comments
 (0)