From d77a99106de3ee758f532497c05a7994f96422b8 Mon Sep 17 00:00:00 2001 From: Marc Dionne Date: Wed, 5 Sep 2012 20:45:01 -0400 Subject: [PATCH] tests/opr: fixes for the uuid-t.c tests It's always good to have a plan. Also, use correct mask when checking for DCE bit. Change-Id: I4ab72aeb89efbd63d2d15fdc57aea8d2c1eb13d9 Reviewed-on: http://gerrit.openafs.org/8047 Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear --- tests/opr/uuid-t.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/opr/uuid-t.c b/tests/opr/uuid-t.c index e66721e48..3e2724a54 100644 --- a/tests/opr/uuid-t.c +++ b/tests/opr/uuid-t.c @@ -23,6 +23,8 @@ main(int argc, char **argv) int version; struct opr_uuid_unpacked raw; + plan(16); + memset(&uuidC, 0, sizeof(opr_uuid_t)); ok(opr_uuid_isNil(&uuidC), "opr_uuid_isNil(nilUuid) works"); @@ -52,7 +54,7 @@ main(int argc, char **argv) memset(&uuidC, 0, sizeof(opr_uuid_t)); opr_uuid_create(&uuidC); ok(!opr_uuid_isNil(&uuidC), "opr_uuid_create makes non-nil UUID"); - is_int(0x80, uuidC.data[8] & 0xB0, "variant is DCE as expected"); + is_int(0x80, uuidC.data[8] & 0x80, "variant is DCE as expected"); version = (uuidC.data[6] & 0xF0) >> 4; ok(version >=1 && version <=5, "version %d is in expected range", version); -- 2.39.5