From 4afa185d2c48245cf96de99b0dc5446c66bf8f7f Mon Sep 17 00:00:00 2001 From: cherat01 Date: Mon, 18 Feb 2019 14:48:57 +0530 Subject: [PATCH] Initializing status buffer state value to TEST_FAIL in test_init Change-Id: I665f456689d7bef194c232ff3dc9a1922e806864 --- api-tests/val/common/val_target.c | 2 +- api-tests/val/nspe/val_framework.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api-tests/val/common/val_target.c b/api-tests/val/common/val_target.c index e3b2980e..ae3c2f4f 100644 --- a/api-tests/val/common/val_target.c +++ b/api-tests/val/common/val_target.c @@ -53,7 +53,7 @@ STATIC_DECLARE val_status_t val_target_cfg_get_next(void **blob) if ((hdr->version != 1) || (hdr->size == 0)) { val_print(PRINT_ERROR, "Target config database Error. \n", 0); - return status; + return VAL_STATUS_ERROR; } hdr++; *blob = hdr; // skip the header. start with the first record. diff --git a/api-tests/val/nspe/val_framework.c b/api-tests/val/nspe/val_framework.c index bbd459e5..1bc3b128 100644 --- a/api-tests/val/nspe/val_framework.c +++ b/api-tests/val/nspe/val_framework.c @@ -430,7 +430,7 @@ void val_test_init(uint32_t test_num, char8_t *desc, uint32_t test_bitfield) miscellaneous_desc_t *misc_desc; /*global init*/ - g_status_buffer.state = 0; + g_status_buffer.state = TEST_FAIL; g_status_buffer.status = VAL_STATUS_INVALID; val_print(PRINT_ALWAYS, "\nTEST: %d | DESCRIPTION: ", test_num);