-
Notifications
You must be signed in to change notification settings - Fork 346
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
increate the code coverage of src process part2 #436
increate the code coverage of src process part2 #436
Conversation
Codecov Report
@@ Coverage Diff @@
## main #436 +/- ##
==========================================
+ Coverage 68.24% 69.35% +1.11%
==========================================
Files 76 76
Lines 9887 10002 +115
==========================================
+ Hits 6747 6937 +190
+ Misses 3140 3065 -75 |
…ner-init-process-2
ad1f724
to
62caaef
Compare
@@ -218,35 +218,35 @@ impl Syscall for LinuxSyscall { | |||
) -> Result<()> { | |||
match mount(source, target, fstype, flags, data) { | |||
Ok(_) => Ok(()), | |||
Err(e) => bail!("Failed to mount {:?}", e), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why this change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
because I found out by using bail!
the downcast_ref() will fail to parse out the source error,
if let Some(errno) = e.downcast_ref()
this condition will fail.
then the integration test will fail on the masked_path check.
please guide me if I am wrong.
Looks good. |
#279
the process/container_init_process part 2