diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/vb2_gbb_tests.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/vb2_gbb_tests.c b/tests/vb2_gbb_tests.c index 0c5eff5e..a7ff9b35 100644 --- a/tests/vb2_gbb_tests.c +++ b/tests/vb2_gbb_tests.c @@ -88,6 +88,14 @@ int vb2ex_read_resource(struct vb2_context *c, } /* Tests */ +static void flag_tests(void) +{ + reset_common_data(); + gbb->flags = 0xdeadbeef; + TEST_EQ(vb2api_gbb_get_flags(&ctx), gbb->flags, + "retrieve GBB flags"); +} + static void key_tests(void) { /* Assume that root key and recovery key are dealt with using the same @@ -343,6 +351,7 @@ static void hwid_tests(void) int main(int argc, char* argv[]) { + flag_tests(); key_tests(); hwid_tests(); |