Skip to content

Commit

Permalink
Update tests/contest/contest/src/tests/linux_masked_paths/masked_path…
Browse files Browse the repository at this point in the history
…s.rs

Co-authored-by: Toru Komatsu <[email protected]>
  • Loading branch information
nayuta-ai and utam0k authored Oct 13, 2024
1 parent 6d0604c commit 52b4683
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,8 @@ fn check_masked_paths() -> TestResult {
use std::{fs, io};
let test_dir = bundle_path.join(&masked_dir_sub);

match fs::create_dir_all(&test_dir) {
io::Result::Ok(_) => { /*This is expected*/ }
io::Result::Err(e) => {
bail!(e)
}
if let Err(e) = fs::create_dir_all(&test_dir) {
bail!(e)
}

match fs::File::create(test_dir.join("tmp")) {
Expand Down

0 comments on commit 52b4683

Please sign in to comment.