From a66e2755d107f7778a19c142e08b8af3dc270025 Mon Sep 17 00:00:00 2001 From: Jinfeng Date: Thu, 27 Aug 2026 00:42:02 +0000 Subject: [PATCH] fix(cuda.core): xfail cuda-gdb test where GPU debugging is unavailable A nightly test machine has cuda-gdb but no libcudadebugger.so.1, so break_on_launch never fires and `list` has no device frame showing the NVRTC temp .cu. Closes #2693 --- cuda_core/tests/test_program.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cuda_core/tests/test_program.py b/cuda_core/tests/test_program.py index 067f2898865..3b280cc48cf 100644 --- a/cuda_core/tests/test_program.py +++ b/cuda_core/tests/test_program.py @@ -1121,8 +1121,9 @@ def test_cuda_gdb_shows_nvrtc_debug_source_lines(init_cuda): timeout=120, ) output = (proc.stdout or "") + (proc.stderr or "") - if "Operation not permitted" in output or "ptrace" in output.lower(): - pytest.skip("cuda-gdb cannot trace this process") + lowered = output.lower() + if "operation not permitted" in lowered or "ptrace" in lowered or "debugging is not possible" in lowered: + pytest.xfail("cuda-gdb is not usable for debugging on this machine: " + output) assert re.search(r"cuda_gdb_src_kernel_\w+\.cu", output), output assert "ISSUE_2422_SOURCE_LINE" in output, output assert "No such file or directory" not in output, output