mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 18:42:29 +03:00
In the unit test framework, if a fatal error occurs in a module that generates a POSIX signal (like segfault), the error handler will log the error and kill the thread. However, if running in single threaded mode (which is the default), killing the thread means killing the process too. This means that results.json is not generated which makes results in automation more difficult to read. This patch updates the error handler to print the results as expected and exit gracefully. JIRA NVGPU-3157 Change-Id: I0204816b18312238e6502eb400e21d0e445e7e6c Signed-off-by: Nicolas Benech <nbenech@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2278481 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com> Reviewed-by: Alex Waterman <alexw@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Vinod Gopalakrishnakurup <vinodg@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>