NUnit test runner exiting without an exception

Our test build has suddenly started failing on a specific unit test assembly without an exception being provided.

The process exit code is -1073740940 and I have a matching entry in the event viewer indicating that the  C:\TeamCityAgents\Agent3\buildAgent\plugins\dotnetPlugin\bin\JetBrains.TeamCity.PlatformProcessRunner.v4.0.x64.exe is crashing.  What's the best way to determine the reason for the crash?  I believe I've narrowed it down to the test that is causing the crash, but I'm not certain.  Unfortunately, the test can behave differently due to the nature of the test (randomization test).

When this happens, all of the remaining tests in the assembly are not run.  Is there a way to protect the build from a single test?

1 comment
Comment actions Permalink

The most reason of that crash are stack overflow or out of memory. Unfortunately, .NET does not let to handle stack overflow erros.
I added a error reporting for tests-running process crashes on 7.0.

TeamCity uses JetBrains.TeamCity.PlatformProcessRunner.* processes to run tests under specified .NET framework version and process bitness.

0

Please sign in to leave a comment.