commit | 7c1588aad84b8aa680e1cdf32c10092221a067fe | [log] [tgz] |
---|---|---|
author | Andrew Jeffery <andrew@aj.id.au> | Thu Mar 14 14:57:40 2019 +1030 |
committer | Andrew Jeffery <andrew@aj.id.au> | Fri Mar 15 22:42:12 2019 +1030 |
tree | 51dc5bbd00780468c5cbb04f901c6ac2a6436a79 | |
parent | bf2417e5efaf799ca196d61aafd481c916d11bf8 [diff] |
test/mbox: Assert that the flash fd is sane Change-Id: I8f08db1b0ae19197c3fb8c4053deab900154a125 Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
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 @@ 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);