Embedded C/C++ Unit Testing Basics | Interrupt

I’m doing testing with CppUTest, but I’m encountering an issue with the device drivers, which try to call some assembly instructions and fail since we’re on an x86 machine rather than the MCU. What is the proper way around this? I need to keep the driver headers included since I use some of the typedefs in them.