mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 17:36:20 +03:00
gpu: nvgpu: fw: fix error code in signal handler
In the signal handler (i.e. when a crash such as segfault occurs), the framework needs to register the test as failed. The call to core_add_test_record was incorrect as it was using a boolean instead of an enum value. JIRA NVGPU-1246 Change-Id: I5480ec38ca9949bc85aa523cc50a68af203fd165 Signed-off-by: Nicolas Benech <nbenech@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2206539 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svc-mobile-misra <svc-mobile-misra@nvidia.com> Reviewed-by: Rajesh Devaraj <rdevaraj@nvidia.com> Reviewed-by: Thomas Fleury <tfleury@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Alex Waterman <alexw@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
Alex Waterman
parent
2eb3c431bd
commit
9f8470d37c
@@ -129,7 +129,7 @@ static void thread_error_handler(int sig, siginfo_t *siginfo, void *context)
|
|||||||
" Signal %d in Test: %s.%s!\n", sig,
|
" Signal %d in Test: %s.%s!\n", sig,
|
||||||
thread_local_module->name, thread_local_test->name);
|
thread_local_module->name, thread_local_test->name);
|
||||||
core_add_test_record(thread_local_module->fw, thread_local_module,
|
core_add_test_record(thread_local_module->fw, thread_local_module,
|
||||||
thread_local_test, false);
|
thread_local_test, FAILED);
|
||||||
sem_post(&unit_thread_semaphore);
|
sem_post(&unit_thread_semaphore);
|
||||||
pthread_exit(NULL);
|
pthread_exit(NULL);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user