Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ELF tests a bit #479

Merged
merged 3 commits into from
Jul 4, 2023
Merged

Fix ELF tests a bit #479

merged 3 commits into from
Jul 4, 2023

Conversation

alessandrod
Copy link

Fix the vaddr layout for sbpfv2 files. Add _sbpfv1 suffix to v1 tests.

@codecov-commenter
Copy link

codecov-commenter commented Jul 1, 2023

Codecov Report

Merging #479 (a74c860) into main (0b8680b) will increase coverage by 0.02%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #479      +/-   ##
==========================================
+ Coverage   89.93%   89.96%   +0.02%     
==========================================
  Files          23       23              
  Lines       10200    10200              
==========================================
+ Hits         9173     9176       +3     
+ Misses       1027     1024       -3     
Impacted Files Coverage Δ
src/jit.rs 92.75% <100.00%> (ø)
src/memory_region.rs 94.22% <100.00%> (ø)

... and 1 file with indirect coverage changes

tests/elfs/elfs.sh Outdated Show resolved Hide resolved
@@ -3128,17 +3128,6 @@ fn test_load_elf_rodata_sbpfv1() {
);
}

#[test]
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this test pointless now?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep this is the default behaviour tested by test_load_elf_rodata now. And I added test_load_elf_rodata_sbpfv1 that checks the same without virtual addresses.

Fix the vaddr layout for sbpfv2 files. Add _sbpfv1 suffix to v1 tests.
@alessandrod alessandrod force-pushed the elfs-fix branch 2 times, most recently from c79c592 to e724611 Compare July 4, 2023 07:41
@alessandrod alessandrod merged commit e538d61 into solana-labs:main Jul 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants