File tree 2 files changed +1
-48
lines changed
2 files changed +1
-48
lines changed Original file line number Diff line number Diff line change @@ -74,38 +74,4 @@ TEST(CUDATest, CUDARuntime) {
74
74
GTEST_SKIP () << " Skipping CUDA tests as CUDA runtime not found" ;
75
75
76
76
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
+ }
Original file line number Diff line number Diff line change @@ -166,19 +166,6 @@ TEST(InterpreterTest, CreateInterpreter) {
166
166
#endif
167
167
}
168
168
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
-
182
169
#ifdef LLVM_BINARY_DIR
183
170
TEST (InterpreterTest, DetectResourceDir) {
184
171
#ifdef EMSCRIPTEN
You can’t perform that action at this time.
0 commit comments