blob: 01250489e5c1881d1933703268753e1c1a816a00 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
/***************************************************************************/
/* Copyright (c) 2024 Microsoft Corporation */
/* Copyright (c) 2026 Eclipse ThreadX contributors */
/* */
/* This program and the accompanying materials are made available under */
/* the terms of the MIT License which is available at */
/* https://opensource.org/licenses/MIT. */
/* */
/* SPDX-License-Identifier: MIT */
/***************************************************************************/
#include "tls_test_frame.h"
/* Call external program without output redirecting. */
INT tls_test_kill_external_test_process( TLS_TEST_EXTERNAL_TEST_PROCESS* test_process_ptr)
{
/* Validate pointers. */
return_value_if_fail( NULL != test_process_ptr, TLS_TEST_INVALID_POINTER);
INT status;
status = kill( test_process_ptr -> tls_test_external_test_process_id, SIGTERM);
return_value_if_fail( -1 != status, TLS_TEST_SYSTEM_CALL_FAILED);
return TLS_TEST_SUCCESS;
}
|