-
Notifications
You must be signed in to change notification settings - Fork 711
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
We have a lot of tests which first glob a list of files containing BPF for little and big endian, then parse those files and finally skip a test if the files endianness doesn't match the native endianness. This is pretty wasteful, since we parse BPF for no good reason and makes the tests more verbose than they have to be. Use NativeFile instead and remove almost all checks for IsNativeEndian from tests. The two remaining cases are in the ELF loader tests, where they do have value: we want to make sure that we can parse things from any endianness. Signed-off-by: Lorenz Bauer <[email protected]>
- Loading branch information
Showing
5 changed files
with
548 additions
and
640 deletions.
There are no files selected for viewing
This file contains 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
Oops, something went wrong.