Skip to content

Commit

Permalink
Merge pull request #483 from yammajamma/HOTFIX-374-Object-Utilitys-Mi…
Browse files Browse the repository at this point in the history
…ssing-Functional-API-Tests

Hotfix #374 object utilitys missing functional api tests
  • Loading branch information
astrogeco authored May 26, 2020
2 parents 35d8b73 + f68486c commit 5f910f7
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions src/tests/idmap-api-test/idmap-api-test.c
Original file line number Diff line number Diff line change
@@ -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 <stdio.h>
#include <string.h>
#include <stdlib.h>
Expand Down Expand Up @@ -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 );

/*
Expand Down

0 comments on commit 5f910f7

Please sign in to comment.