XUnit crashing when a stack overflow occurs.
Hello, I am using XUnit to test untrusted student code. Thing is, whenever a stack overflow occurs (very common) the testsuite crashes completely and the tests after are not run anymore. We need to run all the tests as we have to log them to display it to the students. One way I found was to check the stack within the function but we would really want to avoid touching the student code. Does anybody got a way to prevent stackoverflow from occurring and if possible throwing an exception? Thanks in advance 😄
1 Reply
stack overflow is an exception
if the code runs out of stack memory, nothing you can do about it