nasa / PSP

The Core Flight System (cFS) Platform Support Package (PSP)
Apache License 2.0
67 stars 57 forks source link

CFE_PSP_WatchdogInit method is not present in ut_psp_stub.c file #366

Open asgibson opened 2 years ago

asgibson commented 2 years ago

Describe the bug Receiving an error during building unit tests that states "undefined reference to `CFE_PSP_WatchdogInit' " while testing a method that calls the CFE_PSP_WatchdogInit method.

To Reproduce Steps to reproduce the behavior:

  1. Find a production code method that uses the CFE_PSP_WatchdogInit
  2. Write a unit test that tests that function
  3. Attempt to build
  4. See error

Expected behavior Build successfully, run tests with them able to use the stubbed behavior from CFE_PSP_WatchdogInit.

Code snips The production code declaration: https://github.com/nasa/PSP/blob/1bd7bd9508dbe7e0084fc8ad600479c5831d7660/fsw/inc/cfe_psp.h#L330-L333

System observed on:

Additional context This is only one of many watchdog methods in PSP; none are present in the ut_psp_stubs.c file. I did not encounter the usage of any other of these watchdog methods, yet.

Reporter Info Alan Gibson NASA/GSFC Code 587

skliper commented 2 years ago

Related to #284