Skip to content

Commit

Permalink
Fix nasa#48, use proper CFE_SB_PipeID type
Browse files Browse the repository at this point in the history
Correct the pipe ID assignment in UT to use the resourceID type.

This also uses a fixed/consistent value here, rather than a random
value.  There is no real need to use a random value.
  • Loading branch information
jphickey committed Dec 1, 2021
1 parent 7b99b91 commit 738a197
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions unit-test/cf_cfdp_tests.c
Original file line number Diff line number Diff line change
Expand Up @@ -8715,7 +8715,7 @@ void Test_CF_CFDP_DisableEngine_ClosesAllActiveFilesAndNoOpenPlaybackDirectories
for (ci = 0; ci < CF_NUM_CHANNELS; ++ci)
{
dummy_channel[ci] = CF_AppData.engine.channels + ci;
dummy_channel[ci]->pipe = Any_uint8();
dummy_channel[ci]->pipe = CFE_SB_PIPEID_C(CFE_ResourceId_FromInteger(1 + ci));
for (qi = 0; qi < num_clist_node_ptrs; ++qi)
{
(CF_AppData.engine.channels + ci)->qs[qs_index[qi]] = malloc(sizeof(clist_node));
Expand Down Expand Up @@ -8805,7 +8805,7 @@ void Test_CF_CFDP_DisableEngine_ClosesAllActiveFilesAndAnyOpenPlaybackDirectorie
for (ci = 0; ci < CF_NUM_CHANNELS; ++ci)
{
dummy_channel[ci] = CF_AppData.engine.channels + ci;
dummy_channel[ci]->pipe = Any_uint8();
dummy_channel[ci]->pipe = CFE_SB_PIPEID_C(CFE_ResourceId_FromInteger(1 + ci));
for (qi = 0; qi < num_clist_node_ptrs; ++qi)
{
(CF_AppData.engine.channels + ci)->qs[qs_index[qi]] = malloc(sizeof(clist_node));
Expand Down Expand Up @@ -8912,7 +8912,7 @@ void Test_CF_CFDP_DisableEngine_ClosesAllActiveFilesAndAllOpenPlaybackDirectorie
for (ci = 0; ci < CF_NUM_CHANNELS; ++ci)
{
dummy_channel[ci] = CF_AppData.engine.channels + ci;
dummy_channel[ci]->pipe = Any_uint8();
dummy_channel[ci]->pipe = CFE_SB_PIPEID_C(CFE_ResourceId_FromInteger(1 + ci));
for (qi = 0; qi < num_clist_node_ptrs; ++qi)
{
(CF_AppData.engine.channels + ci)->qs[qs_index[qi]] = malloc(sizeof(clist_node));
Expand Down

0 comments on commit 738a197

Please sign in to comment.