From f68486c31b45c4e9959bb1848f6f91cddd6f3d58 Mon Sep 17 00:00:00 2001 From: Yasir Khan Date: Tue, 26 May 2020 16:01:23 -0400 Subject: [PATCH] HOTFIX-374, Fixed OS_ConvertToArrayIndex failing test --- src/tests/idmap-api-test/idmap-api-test.c | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/src/tests/idmap-api-test/idmap-api-test.c b/src/tests/idmap-api-test/idmap-api-test.c index 15e876ef1..a66699a9e 100644 --- a/src/tests/idmap-api-test/idmap-api-test.c +++ b/src/tests/idmap-api-test/idmap-api-test.c @@ -1,3 +1,20 @@ +/* + * Copyright (c) 2020, United States government as represented by the + * administrator of the National Aeronautics Space Administration. + * All rights reserved. This software was created at NASA Goddard + * Space Flight Center pursuant to government contracts. + * + * This is governed by the NASA Open Source Agreement and may be used, + * distributed and modified only according to the terms of that agreement. + */ + +/* + * Filename: idmap-api-test.c + * + * Purpose: This file contains functional tests for "osapi-idmap" + * + */ + #include #include #include @@ -196,11 +213,11 @@ void TestIdMapApi(void) * for an error return code */ actual = OS_ConvertToArrayIndex(0x0000, &TestArrayIndex); - expected = OS_ERR_INCORRECT_OBJ_TYPE; + expected = OS_ERR_INVALID_ID; UtAssert_True(actual == expected , "OS_ConvertToArrayIndex() (%ld) == %ld ", (long)actual, (long)expected ); actual = OS_ConvertToArrayIndex(0xFFFFFFFF, &TestArrayIndex); - expected = OS_ERR_INCORRECT_OBJ_TYPE; + expected = OS_ERR_INVALID_ID; UtAssert_True(actual == expected , "OS_ConvertToArrayIndex() (%ld) == %ld ", (long)actual, (long)expected ); /*