Commit 7c1588aa authored by Andrew Jeffery's avatar Andrew Jeffery

test/mbox: Assert that the flash fd is sane

Change-Id: I8f08db1b0ae19197c3fb8c4053deab900154a125
Signed-off-by: Andrew Jeffery's avatarAndrew Jeffery <>
parent bf2417e5
......@@ -290,6 +290,8 @@ int mbox_set_mtd_data(struct mbox_context *context, const void *data,
struct mbox_test_context *arg;
void *map;
assert(test.flash.fd > 2);
/* Sanity check */
arg = container_of(context, struct mbox_test_context, context);
assert(&test == arg);
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment