Conversation
Do not catch unexpected exceptions to return an error code but allow the exception to terminate the tested program. This will result in useful exception-related error output that is otherwise lost. Do not catch and then ignore an unexpected exception but re-throw it. Explicitly returning error codes. Abort when catching asynchronous exceptions. Signed-off-by: Bjoern Knafla <bjoern@codeplay.com>
Allow unexpected exceptions to terminate the LIT test as this outputs extra information. Signed-off-by: Bjoern Knafla <bjoern@codeplay.com>
|
|
Aren't assertions enabled by default and should be explicitly disabled with |
|
@bader You are right and my PRs to replace I seemingly got confused due to working for too long with CMake and explicit |
# Conflicts: # sycl/test/basic_tests/image_api.cpp
|
@bjoernknafla, do you want to proceed with these changes? |
|
I need/want to rework this a bit - should I close and reopen it once ready or keep it open and marked as WIP? |
|
As I learned from you, I striked that old comment through now to prevent future confusion. |
|
This PR is old and outdated and I won't be able to get back to it for a while. While the LIT tests could need another revisit to ensure that exceptions are not ignored I suggest to close this PR. |
|
Thanks for the update. |
Fix LIT tests that are not compiled with assertions enabled but call
assert.
Only done for LIT tests that require fixes during work on CUDA.
Signed-off-by: Bjoern Knafla bjoern@codeplay.com