Skip to content

Commit ff5deec

Browse files
committed
Bring back test_nvrtcGetLoweredName_failure() (it was originally under PR NVIDIA#497).
1 parent d6b53a3 commit ff5deec

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

cuda_bindings/tests/test_nvrtc.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,9 @@ def test_nvrtcGetSupportedArchs():
2929
err, supportedArchs = nvrtc.nvrtcGetSupportedArchs()
3030
ASSERT_DRV(err)
3131
assert len(supportedArchs) != 0
32+
33+
34+
def test_nvrtcGetLoweredName_failure():
35+
err, name = nvrtc.nvrtcGetLoweredName(0, b"I'm an elevated name!")
36+
assert err == nvrtc.nvrtcResult.NVRTC_ERROR_INVALID_PROGRAM
37+
assert name is None

0 commit comments

Comments
 (0)