TF-M Reference Manual  1.2.0
TrustedFirmware-M
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
platform_tests_common.c
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2019, Arm Limited. All rights reserved.
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  *
6  */
7 
8 #include "tfm_platform_api.h"
10 
15 {
16  int32_t err;
17 
19  NULL,
20  NULL);
21  if (err != TFM_PLATFORM_ERR_NOT_SUPPORTED) {
22  TEST_FAIL("Call with invalid request should fail.");
23  return;
24  }
25 
26  ret->val = TEST_PASSED;
27 }
#define TEST_FAIL(info_msg)
int32_t tfm_platform_ioctl_req_t
void tfm_platform_test_common_001(struct test_result_t *ret)
Call the platform service with an invalid request.
#define INVALID_REQUEST
struct test_result_t ret
enum test_status_t val
enum tfm_platform_err_t tfm_platform_ioctl(tfm_platform_ioctl_req_t request, psa_invec *input, psa_outvec *output)
Performs a platform-specific service.