You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have been struggling with this for a bit now. I am trying to mock some headers for an NXP part MCXA154, there is a file fsl_romapi.h. This includes a few other headers as well. project.txt
Creating mock for fsl_common...
Creating mock for fsl_romapi...
Creating mock for fsl_device_registers...
WARNING: No function prototypes found!
Creating mock for fsl_common_arm...
In file included from include/flash_storage.h:12,
from test/test_flash_storage.c:5:
build/test/mocks/fsl_romapi.h:1:10: fatal error: frdm-mcxa153-bsp/drivers/fsl_common.h: No such file or directory
1 | #include "frdm-mcxa153-bsp/drivers/fsl_common.h"
All of my mocks are linking to the full file path rather than the relative paths. I am attaching pictures of my folder structure.
Running an ls command from the same directory I run ceedling from I get
ls frdm-mcxa153-bsp/drivers/fsl_common*
frdm-mcxa153-bsp/drivers/fsl_common_arm.c frdm-mcxa153-bsp/drivers/fsl_common_arm.h frdm-mcxa153-bsp/drivers/fsl_common.c frdm-mcxa153-bsp/drivers/fsl_common.h
Notice the files that cannot be found are there.
The text was updated successfully, but these errors were encountered:
Hello,
I have been struggling with this for a bit now. I am trying to mock some headers for an NXP part MCXA154, there is a file fsl_romapi.h. This includes a few other headers as well.
project.txt
I have attached my project.yml
My basic test is
In my ceedling output I see
Creating mock for fsl_common...
Creating mock for fsl_romapi...
Creating mock for fsl_device_registers...
WARNING: No function prototypes found!
Creating mock for fsl_common_arm...
In file included from include/flash_storage.h:12,
from test/test_flash_storage.c:5:
build/test/mocks/fsl_romapi.h:1:10: fatal error: frdm-mcxa153-bsp/drivers/fsl_common.h: No such file or directory
1 | #include "frdm-mcxa153-bsp/drivers/fsl_common.h"
All of my mocks are linking to the full file path rather than the relative paths. I am attaching pictures of my folder structure.
Running an ls command from the same directory I run ceedling from I get
ls frdm-mcxa153-bsp/drivers/fsl_common*
frdm-mcxa153-bsp/drivers/fsl_common_arm.c frdm-mcxa153-bsp/drivers/fsl_common_arm.h frdm-mcxa153-bsp/drivers/fsl_common.c frdm-mcxa153-bsp/drivers/fsl_common.h
Notice the files that cannot be found are there.
The text was updated successfully, but these errors were encountered: