From f4de6e71a159ca73051cd00c8ba2a34286e1b014 Mon Sep 17 00:00:00 2001 From: Joseph Hickey Date: Wed, 7 Aug 2024 15:43:00 -0400 Subject: [PATCH] Fix #94, deprecate PSP stubs in MM coverage tets Only include PSP stubs if the OMIT_DEPRECATED flag is unset. The PSP now provides the full set of stubs. --- unit-test/utilities/mm_test_utils.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/unit-test/utilities/mm_test_utils.c b/unit-test/utilities/mm_test_utils.c index 009f798..9027125 100644 --- a/unit-test/utilities/mm_test_utils.c +++ b/unit-test/utilities/mm_test_utils.c @@ -96,8 +96,11 @@ void MM_Test_TearDown(void) } /* - * Placeholder stubs until PSP UT implementation is available + * The PSP should now provide these stubs as of the Equuleus build. + * Including in an OMIT_DEPRECATED block temporarily should allow + * backward compatibility to ease the transition. */ +#ifndef OMIT_DEPRECATED int32 CFE_PSP_EepromWriteEnable(uint32 Bank) { @@ -168,3 +171,5 @@ int32 CFE_PSP_MemWrite32(cpuaddr MemoryAddress, uint32 uint32Value) status = UT_DEFAULT_IMPL(CFE_PSP_MemWrite32); return status; } + +#endif /* OMIT_DEPRECATED */