Skip to content

Fix an issue with the _test_implicit_bind test#2630

Merged
robgjansen merged 1 commit intoshadow:mainfrom
stevenengler:fix-bindc-test
Dec 22, 2022
Merged

Fix an issue with the _test_implicit_bind test#2630
robgjansen merged 1 commit intoshadow:mainfrom
stevenengler:fix-bindc-test

Conversation

@stevenengler
Copy link
Copy Markdown
Contributor

@stevenengler stevenengler commented Dec 21, 2022

The test was calling connect twice but incorrectly comparing the first accepted socket with the second connect socket (which was already closed). This synchronizes the calls to connect(), accept(), and close() so that we correctly compare the ports of the related tuple of client, listener, and accepted sockets.

@stevenengler stevenengler self-assigned this Dec 21, 2022
@github-actions github-actions bot added the Component: Testing Unit and integration tests and frameworks label Dec 22, 2022
@codecov
Copy link
Copy Markdown

codecov bot commented Dec 22, 2022

Codecov Report

Base: 68.14% // Head: 68.00% // Decreases project coverage by -0.14% ⚠️

Coverage data is based on head (ef089b2) compared to base (8a50fe6).
Patch coverage: 50.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2630      +/-   ##
==========================================
- Coverage   68.14%   68.00%   -0.15%     
==========================================
  Files         201      201              
  Lines       29490    29496       +6     
  Branches     5788     5790       +2     
==========================================
- Hits        20097    20059      -38     
- Misses       4787     4835      +48     
+ Partials     4606     4602       -4     
Flag Coverage Δ
tests 68.00% <50.00%> (-0.15%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/test/bindc/test_bind.c 68.18% <50.00%> (+1.51%) ⬆️
src/main/host/syscall/handler/fcntl.rs 50.00% <0.00%> (-14.29%) ⬇️
src/main/host/descriptor/descriptor_table.rs 69.56% <0.00%> (-10.15%) ⬇️
src/main/host/syscall/handler/unistd.rs 66.40% <0.00%> (-6.72%) ⬇️
src/main/utility/shm_cleanup.rs 61.36% <0.00%> (-3.41%) ⬇️
src/main/host/syscall/handler/eventfd.rs 69.44% <0.00%> (-2.78%) ⬇️
src/main/host/syscall/handler/mod.rs 83.75% <0.00%> (-2.50%) ⬇️
src/main/host/descriptor/eventfd.rs 64.64% <0.00%> (-1.02%) ⬇️
src/main/core/manager.rs 63.16% <0.00%> (-0.90%) ⬇️
...c/main/utility/synchronization/count_down_latch.rs 85.10% <0.00%> (-0.54%) ⬇️
... and 8 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Component: Testing Unit and integration tests and frameworks

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants