diff options
| author | Andrew Jeffery <andrew@aj.id.au> | 2018-08-07 13:32:57 +0930 |
|---|---|---|
| committer | Andrew Jeffery <andrew@aj.id.au> | 2018-09-12 15:05:51 +0930 |
| commit | 1e531afd1698c5613004e2bf4e73bda4364fa6d6 (patch) | |
| tree | 9949340bcc068f8016c45c1422f79793952eab5d /test | |
| parent | 457a6e5fa6a7dad50673222b09b2c7fec2ef0a97 (diff) | |
| download | phosphor-mboxbridge-1e531afd1698c5613004e2bf4e73bda4364fa6d6.tar.gz phosphor-mboxbridge-1e531afd1698c5613004e2bf4e73bda4364fa6d6.zip | |
protocol: Add get_info
Change-Id: Ie3338714813bb65f5d37fcd046dd5bebc0ba21f0
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Diffstat (limited to 'test')
| -rw-r--r-- | test/Makefile.am.include | 3 | ||||
| -rw-r--r-- | test/mbox.c | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/test/Makefile.am.include b/test/Makefile.am.include index feb1c97..71fa851 100644 --- a/test/Makefile.am.include +++ b/test/Makefile.am.include @@ -24,7 +24,8 @@ TEST_MBOX_SRCS = \ lpc.c \ lpc_reset.c \ common.c \ - flash.c + flash.c \ + protocol.c TEST_MOCK_SRCS = %reldir%/tmpf.c %reldir%/mbox.c %reldir%/system.c diff --git a/test/mbox.c b/test/mbox.c index dbf2526..a622d6e 100644 --- a/test/mbox.c +++ b/test/mbox.c @@ -231,6 +231,9 @@ struct mbox_context *mbox_create_test_context(int n_windows, size_t len) test.context.windows.num = n_windows; test.context.windows.default_size = len; + rc = protocol_init(&test.context); + assert(rc == 0); + /* * We need to call __init_mbox_dev() to initialise the handler table. * However, afterwards we need to discard the fd of the clearly useless |

