summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Jeffery <andrew@aj.id.au>2019-03-14 14:57:40 +1030
committerAndrew Jeffery <andrew@aj.id.au>2019-03-15 22:42:12 +1030
commit7c1588aad84b8aa680e1cdf32c10092221a067fe (patch)
tree51dc5bbd00780468c5cbb04f901c6ac2a6436a79
parentbf2417e5efaf799ca196d61aafd481c916d11bf8 (diff)
downloadphosphor-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.c2
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);
OpenPOWER on IntegriCloud