Attention is currently required from: Nico Huber, Angel Pons, Anastasia Klimchuk.
3 comments:
Commit Message:
I plan to do this for all drivers in programmer table,
one at a time. Dummy is the first and it does not need
mocks.
This explains a overarching strategy however is spare on the detail of the commit itself.
May I recommend something along the lines of;
```
"
Introduce test to exercise that init and teardown of drivers correctly manage the drivers life-time state. We constrain ourselves to dummyflasher in particular here as it does not need any mocking.
"
```
After this was rebased on the top of memory checks
https://review.coreboot.org/c/flashrom/+/51243 ,
dummy has been discovered to leak memory on shutdown,
so I fix it here.
separate patch as it is not related to the introduction of the test code itself just that a previously introduced test found a bug.
File dummyflasher.c:
Patch Set #2, Line 653: free(data);
Fix the memory leak in a separate patch as not to be conflated with the introduction of test code. The fix stands upon it's own merit.
To view, visit change 52497. To unsubscribe, or for help writing mail filters, visit settings.