Skip to content

Commit dadb8cb

Browse files
authored
Run OpenMp kernel test for C + OpenMP kernels
1 parent 085a50a commit dadb8cb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/test_xcpp_kernel.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ class BaseXCppOpenMPTests(jupyter_kernel_test.KernelTests):
230230
__test__ = False
231231

232232
# language_info.name in a kernel_info_reply should match this
233-
language_name = 'C++'
233+
language_name = 'C++' if 'xcpp' in kernel_name else 'c'
234234

235235
# OpenMP test that creates 2 threads, and gets them to output their thread
236236
# number in descending order
@@ -267,7 +267,7 @@ def test_xcpp_omp(self):
267267
self.assertEqual(output_msgs[0]['content']['name'], 'stdout')
268268
self.assertEqual(output_msgs[0]['content']['text'], '10')
269269

270-
kernel_names = ['xcpp17-omp', 'xcpp20-omp', 'xcpp23-omp']
270+
kernel_names = ['xcpp17-omp', 'xcpp20-omp', 'xcpp23-omp', 'xc11-omp', 'xc17-omp', 'xc23-omp']
271271

272272
for name in kernel_names:
273273
class_name = f"XCppOpenMPTests_{name}"

0 commit comments

Comments
 (0)