Skip to content

Commit 693d288

Browse files
committed
[test] disable failing DLM and ScopeReflection test on Win32
1 parent 2fe65fc commit 693d288

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

unittests/CppInterOp/DynamicLibraryManagerTest.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#include "gtest/gtest.h"
22

3+
#include "clang/Basic/Version.h"
34
#include "clang/Interpreter/CppInterOp.h"
45

56
#include "llvm/Support/FileSystem.h"
@@ -21,6 +22,11 @@ TEST(DynamicLibraryManagerTest, Sanity) {
2122
#ifdef EMSCRIPTEN
2223
GTEST_SKIP() << "Test fails for Emscipten builds";
2324
#endif
25+
26+
#if CLANG_VERSION_MAJOR == 18 && defined(CPPINTEROP_USE_CLING) && defined(_WIN32)
27+
GTEST_SKIP() << "Test fails with Cling on Windows";
28+
#endif
29+
2430
EXPECT_TRUE(Cpp::CreateInterpreter());
2531
EXPECT_FALSE(Cpp::GetFunctionAddress("ret_zero"));
2632

unittests/CppInterOp/ScopeReflectionTest.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,10 @@ TEST(ScopeReflectionTest, SizeOf) {
163163

164164

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

0 commit comments

Comments
 (0)