diff options
author | Daan De Meyer <daan.j.demeyer@gmail.com> | 2021-11-23 17:52:27 +0100 |
---|---|---|
committer | Daan De Meyer <daan.j.demeyer@gmail.com> | 2021-11-24 14:47:21 +0100 |
commit | 51d1c8f2feef9eac7c242354a79559ccc2dff174 (patch) | |
tree | c04fbf32113e160b4bb75296645229585707fc76 /src/test/test-gpt.c | |
parent | basic: Rename SECONDARY_ARCHITECTURE to ARCHITECTURE_SECONDARY (diff) | |
download | systemd-51d1c8f2feef9eac7c242354a79559ccc2dff174.tar.xz systemd-51d1c8f2feef9eac7c242354a79559ccc2dff174.zip |
gpt: Store the architecture in GptPartitionType
We also add a function gpt_partition_type_uuid_to_arch() to get the
architecture of a partition type uuid.
Diffstat (limited to 'src/test/test-gpt.c')
-rw-r--r-- | src/test/test-gpt.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/test-gpt.c b/src/test/test-gpt.c index 7ee044ba50..6fa546de2a 100644 --- a/src/test/test-gpt.c +++ b/src/test/test-gpt.c @@ -47,6 +47,8 @@ static void test_gpt_types_against_architectures(void) { assert_se(gpt_partition_type_is_usr(id)); if (streq(prefix, "usr-") && streq(suffix, "-verity")) assert_se(gpt_partition_type_is_usr_verity(id)); + + assert_se(gpt_partition_type_uuid_to_arch(id) == a); } } } |