mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-04-16 17:43:14 +00:00
Give a type name to test_info
Make it possible to pass test_info around rather than always refer to the global variable.
This commit is contained in:
parent
31fccc80a5
commit
47b7540fec
@ -271,7 +271,7 @@ typedef enum
|
|||||||
TEST_RESULT_SKIPPED
|
TEST_RESULT_SKIPPED
|
||||||
} test_result_t;
|
} test_result_t;
|
||||||
|
|
||||||
static struct
|
typedef struct
|
||||||
{
|
{
|
||||||
paramfail_test_state_t paramfail_test_state;
|
paramfail_test_state_t paramfail_test_state;
|
||||||
test_result_t result;
|
test_result_t result;
|
||||||
@ -279,7 +279,8 @@ static struct
|
|||||||
const char *filename;
|
const char *filename;
|
||||||
int line_no;
|
int line_no;
|
||||||
}
|
}
|
||||||
test_info;
|
test_info_t;
|
||||||
|
static test_info_t test_info;
|
||||||
|
|
||||||
#if defined(MBEDTLS_PLATFORM_C)
|
#if defined(MBEDTLS_PLATFORM_C)
|
||||||
mbedtls_platform_context platform_ctx;
|
mbedtls_platform_context platform_ctx;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user