Skip to content

Fix VMM test suite #1276

Description

@leofang

Using SECURITY_ATTRIBUTES was wrong:

defget_sa():
classSECURITY_ATTRIBUTES(ctypes.Structure):
_fields_= [
("nLength", wintypes.DWORD),
("lpSecurityDescriptor", wintypes.LPVOID),
("bInheritHandle", wintypes.BOOL),
]
sa=SECURITY_ATTRIBUTES()
sa.nLength=ctypes.sizeof(sa)
sa.lpSecurityDescriptor=None
sa.bInheritHandle=False# TODO: why?
returnsa
ifIS_WINDOWS:
return (("win32", get_sa()), ("win32_kmt", None))

we should use OBJECT_ATTRIBUTES instead. See discussion starting here: #1263 (comment).

Metadata

Metadata

Assignees

Labels

P0High priority - Must do!bugSomething isn't workingcuda.coreEverything related to the cuda.core moduletestImprovements or additions to tests

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions