mirror of
https://review.coreboot.org/flashrom.git
synced 2025-06-30 21:52:36 +02:00
tests: add init_shutdown test for realtek_mst_i2c_spi
This can catch regressions like the earlier one in this programmer that caused initialization to always fail. Requires support for mocking POSIX file I/O functions because the programmer does ioctls on the opened file. TEST=ninja test Signed-off-by: Peter Marheine <pmarheine@chromium.org> Change-Id: I5a5c617d1ec35d2a3bbe622e5add82a65eb396f0 Reviewed-on: https://review.coreboot.org/c/flashrom/+/56911 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Anastasia Klimchuk <aklm@chromium.org> Reviewed-by: Edward O'Callaghan <quasisec@chromium.org>
This commit is contained in:

committed by
Edward O'Callaghan

parent
b261bec1ee
commit
47f4c18260
@ -34,6 +34,8 @@ mocks = [
|
||||
'-Wl,--wrap=open',
|
||||
'-Wl,--wrap=open64',
|
||||
'-Wl,--wrap=ioctl',
|
||||
'-Wl,--wrap=read',
|
||||
'-Wl,--wrap=write',
|
||||
'-Wl,--wrap=fopen',
|
||||
'-Wl,--wrap=fopen64',
|
||||
'-Wl,--wrap=rget_io_perms',
|
||||
|
Reference in New Issue
Block a user