| Index: tests/cgptlib_test.c
|
| diff --git a/tests/cgptlib_test.c b/tests/cgptlib_test.c
|
| index f016b212fb5fa1529ef08e19932df23d3f965ca8..a100579dda1a1b28cd91edb5a501e3723c92b859 100644
|
| --- a/tests/cgptlib_test.c
|
| +++ b/tests/cgptlib_test.c
|
| @@ -811,39 +811,39 @@ static int EntryAttributeGetSetTest() {
|
| GptData* gpt = GetEmptyGptData();
|
| GptEntry* e = (GptEntry*)(gpt->primary_entries);
|
|
|
| - e->attributes = 0x0000000000000000LLU;
|
| + e->attrs.whole = 0x0000000000000000LLU;
|
| SetEntrySuccessful(e, 1);
|
| - EXPECT(0x0100000000000000LLU == e->attributes);
|
| + EXPECT(0x0100000000000000LLU == e->attrs.whole);
|
| EXPECT(1 == GetEntrySuccessful(e));
|
| - e->attributes = 0xFFFFFFFFFFFFFFFFLLU;
|
| + e->attrs.whole = 0xFFFFFFFFFFFFFFFFLLU;
|
| SetEntrySuccessful(e, 0);
|
| - EXPECT(0xFEFFFFFFFFFFFFFFLLU == e->attributes);
|
| + EXPECT(0xFEFFFFFFFFFFFFFFLLU == e->attrs.whole);
|
| EXPECT(0 == GetEntrySuccessful(e));
|
|
|
| - e->attributes = 0x0000000000000000LLU;
|
| + e->attrs.whole = 0x0000000000000000LLU;
|
| SetEntryTries(e, 15);
|
| EXPECT(15 == GetEntryTries(e));
|
| - EXPECT(0x00F0000000000000LLU == e->attributes);
|
| - e->attributes = 0xFFFFFFFFFFFFFFFFLLU;
|
| + EXPECT(0x00F0000000000000LLU == e->attrs.whole);
|
| + e->attrs.whole = 0xFFFFFFFFFFFFFFFFLLU;
|
| SetEntryTries(e, 0);
|
| - EXPECT(0xFF0FFFFFFFFFFFFFLLU == e->attributes);
|
| + EXPECT(0xFF0FFFFFFFFFFFFFLLU == e->attrs.whole);
|
| EXPECT(0 == GetEntryTries(e));
|
|
|
| - e->attributes = 0x0000000000000000LLU;
|
| + e->attrs.whole = 0x0000000000000000LLU;
|
| SetEntryPriority(e, 15);
|
| - EXPECT(0x000F000000000000LLU == e->attributes);
|
| + EXPECT(0x000F000000000000LLU == e->attrs.whole);
|
| EXPECT(15 == GetEntryPriority(e));
|
| - e->attributes = 0xFFFFFFFFFFFFFFFFLLU;
|
| + e->attrs.whole = 0xFFFFFFFFFFFFFFFFLLU;
|
| SetEntryPriority(e, 0);
|
| - EXPECT(0xFFF0FFFFFFFFFFFFLLU == e->attributes);
|
| + EXPECT(0xFFF0FFFFFFFFFFFFLLU == e->attrs.whole);
|
| EXPECT(0 == GetEntryPriority(e));
|
|
|
| - e->attributes = 0xFFFFFFFFFFFFFFFFLLU;
|
| + e->attrs.whole = 0xFFFFFFFFFFFFFFFFLLU;
|
| EXPECT(1 == GetEntrySuccessful(e));
|
| EXPECT(15 == GetEntryPriority(e));
|
| EXPECT(15 == GetEntryTries(e));
|
|
|
| - e->attributes = 0x0123000000000000LLU;
|
| + e->attrs.whole = 0x0123000000000000LLU;
|
| EXPECT(1 == GetEntrySuccessful(e));
|
| EXPECT(2 == GetEntryTries(e));
|
| EXPECT(3 == GetEntryPriority(e));
|
|
|