test: do not fail if order of items changes#50
Merged
keszybz merged 1 commit intosystemd:mainfrom Oct 5, 2025
Merged
Conversation
keszybz
reviewed
Oct 5, 2025
Compiling notes.c with -O0:
Displaying notes found in: .note.dlopen
Owner Data size Description
FDO 0x00000088 FDO_DLOPEN_METADATA
Dlopen Metadata: [{"feature":"fido2","description":"Support fido2 for encryption and authentication.","priority":"required","soname":["libfido2.so.1"]}]
FDO 0x00000084 FDO_DLOPEN_METADATA
Dlopen Metadata: [{"feature":"pcre2","description":"Support pcre2 for regex","priority":"suggested","soname":["libpcre2-8.so.0","libpcre2-8.so.1"]}]
FDO 0x0000008e FDO_DLOPEN_METADATA
Dlopen Metadata: [{"feature":"lz4","description":"Support lz4 decompression in journal and coredump files","priority":"recommended","soname":["liblz4.so.1"]}]
FDO 0x00000095 FDO_DLOPEN_METADATA
Dlopen Metadata: [{"feature":"tpm","priority":"recommended","soname":["libtss2-mu.so.0"]}, {"feature":"tpm","priority":"recommended","soname":["libtss2-esys.so.0"]}]
With -O2:
Displaying notes found in: .note.dlopen
Owner Data size Description
FDO 0x00000095 FDO_DLOPEN_METADATA
Dlopen Metadata: [{"feature":"tpm","priority":"recommended","soname":["libtss2-mu.so.0"]}, {"feature":"tpm","priority":"recommended","soname":["libtss2-esys.so.0"]}]
FDO 0x0000008e FDO_DLOPEN_METADATA
Dlopen Metadata: [{"feature":"lz4","description":"Support lz4 decompression in journal and coredump files","priority":"recommended","soname":["liblz4.so.1"]}]
FDO 0x00000084 FDO_DLOPEN_METADATA
Dlopen Metadata: [{"feature":"pcre2","description":"Support pcre2 for regex","priority":"suggested","soname":["libpcre2-8.so.0","libpcre2-8.so.1"]}]
FDO 0x00000088 FDO_DLOPEN_METADATA
Dlopen Metadata: [{"feature":"fido2","description":"Support fido2 for encryption and authentication.","priority":"required","soname":["libfido2.so.1"]}]
So the test fails if -O2 is the default as the order is different
Follow-up for c2d3548
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Compiling notes.c with -O0:
With -O2:
So the test fails if -O2 is the default as the order is different
Follow-up for c2d3548