blob: 90ca30434e8368388149e9b877239c995040c50f [file] [log] [blame]
Julian Halld4071382021-07-07 16:45:53 +01001/*
2 * Copyright (c) 2021, Arm Limited and Contributors. All rights reserved.
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7#include <stdint.h>
8#include <stdio.h>
9#include <service_locator.h>
10#include "service_under_test.h"
11
12int32_t val_entry(void);
13
14int main(int argc, char *argv[])
15{
16 int rval = -1;
17
18 service_locator_init();
19
20 rval = locate_service_under_test();
21
22 if (!rval) {
23
24 rval = val_entry();
25
26 relinquish_service_under_test();
27 }
28 else {
29
30 printf("Failed to locate service under test. Error code: %d\n", rval);
31 }
32
33 return rval;
34}