Skip to content

Commit

Permalink
fox type err
Browse files Browse the repository at this point in the history
Signed-off-by: sat0ken <[email protected]>
  • Loading branch information
sat0ken committed Nov 24, 2024
1 parent 6171950 commit 6b762f7
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/contest/runtimetest/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -567,8 +567,8 @@ pub fn test_validate_root_readonly(spec: &Spec) {
}
}
if let Err(e) = test_dir_read_access("/") {
let errno = Errno::from_raw(e.raw_os_error().unwrap());
if errno {
if let Some(errno_code) = e.raw_os_error() {
let errno = Errno::from_raw(errno_code);
eprintln!(
"readonly root filesystem, but error in testing read access for path /, error: {}",
errno
Expand All @@ -577,17 +577,17 @@ pub fn test_validate_root_readonly(spec: &Spec) {
}
} else {
if let Err(e) = test_dir_write_access("/") {
let errno = Errno::from_raw(e.raw_os_error().unwrap());
if errno {
if let Some(errno_code) = e.raw_os_error() {
let errno = Errno::from_raw(errno_code);
eprintln!(
"readonly root filesystem is false, but error in testing write access for path /, error: {}",
errno
);
}
}
if let Err(e) = test_dir_read_access("/") {
let errno = Errno::from_raw(e.raw_os_error().unwrap());
if errno {
if let Some(errno_code) = e.raw_os_error() {
let errno = Errno::from_raw(errno_code);
eprintln!(
"readonly root filesystem is false, but error in testing read access for path /, error: {}",
errno
Expand Down

0 comments on commit 6b762f7

Please sign in to comment.