diff options
author | Andrew Jeffery <andrew@aj.id.au> | 2019-03-14 14:57:40 +1030 |
---|---|---|
committer | Andrew Jeffery <andrew@aj.id.au> | 2019-03-15 22:42:12 +1030 |
commit | 7c1588aad84b8aa680e1cdf32c10092221a067fe (patch) | |
tree | 51dc5bbd00780468c5cbb04f901c6ac2a6436a79 | |
parent | bf2417e5efaf799ca196d61aafd481c916d11bf8 (diff) | |
download | phosphor-mboxbridge-7c1588aad84b8aa680e1cdf32c10092221a067fe.tar.gz phosphor-mboxbridge-7c1588aad84b8aa680e1cdf32c10092221a067fe.zip |
test/mbox: Assert that the flash fd is sane
Change-Id: I8f08db1b0ae19197c3fb8c4053deab900154a125
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
-rw-r--r-- | test/mbox.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/mbox.c b/test/mbox.c index 8897924..a351250 100644 --- a/test/mbox.c +++ b/test/mbox.c @@ -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); |