oneapi-src / level-zero-tests

oneAPI Level Zero Conformance & Performance test content
https://spec.oneapi.com/versions/latest/elements/l0/source/index.html
MIT License
47 stars 40 forks source link

Failing tests are not failing gracefully #91

Open JablonskiMateusz opened 1 month ago

JablonskiMateusz commented 1 month ago

Tests implicitly assume that every API call returns success. E.g. Module handle passed to zeModuleCreate is not even initialized on app side, then if module creation fails then incorrect handle is passed to zeModuleDestroy which leads to segfault. Tests should check the error code and provide graceful teardown without crashes