Skip to content

Commit 1bb5c43

Browse files
committed
removing added test
1 parent a9705ff commit 1bb5c43

File tree

2 files changed

+1
-48
lines changed

2 files changed

+1
-48
lines changed

unittests/CppInterOp/CUDATest.cpp

Lines changed: 1 addition & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -74,38 +74,4 @@ TEST(CUDATest, CUDARuntime) {
7474
GTEST_SKIP() << "Skipping CUDA tests as CUDA runtime not found";
7575

7676
EXPECT_TRUE(HasCudaRuntime());
77-
}
78-
79-
#ifndef CPPINTEROP_USE_CLING
80-
static bool HasCudaSDK_CAPI() {
81-
auto supportsCudaSDK = []() {
82-
#if CLANG_VERSION_MAJOR < 16
83-
return false;
84-
#endif // CLANG_VERSION_MAJOR < 16
85-
86-
const char* argv[] = {"--cuda"};
87-
CXInterpreter CXI = clang_createInterpreter(argv, 1);
88-
if (!CXI)
89-
return false;
90-
91-
// Clean up the interpreter since we just needed to test creation
92-
clang_Interpreter_dispose(CXI);
93-
return true;
94-
};
95-
static bool hasCuda = supportsCudaSDK();
96-
return hasCuda;
97-
}
98-
99-
TEST(CUDATest, SanityCAPI) {
100-
#ifdef _WIN32
101-
GTEST_SKIP() << "Disabled on Windows. Needs fixing.";
102-
#endif
103-
if (!HasCudaSDK_CAPI())
104-
GTEST_SKIP() << "Skipping CUDA CAPI test; CUDA not available.";
105-
106-
const char* argv[] = {"--cuda"};
107-
CXInterpreter CXI = clang_createInterpreter(argv, 1);
108-
EXPECT_NE(CXI, nullptr);
109-
clang_Interpreter_dispose(CXI);
110-
}
111-
#endif
77+
}

unittests/CppInterOp/InterpreterTest.cpp

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -166,19 +166,6 @@ TEST(InterpreterTest, CreateInterpreter) {
166166
#endif
167167
}
168168

169-
#ifndef CPPINTEROP_USE_CLING
170-
TEST(InterpreterTest, CreateInterpreterCAPI) {
171-
const char* argv[] = {"-std=c++17"};
172-
CXInterpreter CXI = clang_createInterpreter(argv, 1);
173-
EXPECT_TRUE(CXI);
174-
175-
auto CLI = clang_Interpreter_getClangInterpreter(CXI);
176-
EXPECT_TRUE(CLI);
177-
178-
clang_Interpreter_dispose(CXI);
179-
}
180-
#endif
181-
182169
#ifdef LLVM_BINARY_DIR
183170
TEST(InterpreterTest, DetectResourceDir) {
184171
#ifdef EMSCRIPTEN

0 commit comments

Comments
 (0)