My last article featured a hand crafted a spy to monitor asm
directives. Now let’s use CppUMock (the mock support companion CppUTest) to create a mock version of asm
.
Continue reading
Mocking the ‘asm’ directives with CppUMock
2
My last article featured a hand crafted a spy to monitor asm
directives. Now let’s use CppUMock (the mock support companion CppUTest) to create a mock version of asm
.
Continue reading
Sometimes embedded developers have to use inline assembler instructions to get better control of the processor, or to improve performance. How should we deal with those when we’re doing TDD and testing off the target?
What’s the problem? The embedded asm
statements cause compilation errors if the assembler instructions are not part of the off-target test platform instruction set. Also some of the instructions might not be legal in the test environment. This article shows how to insert a test double for the asm
directives with gcc and CppUTest.