Skip to content

Commit

Permalink
Remove unused Permission-denied cases
Browse files Browse the repository at this point in the history
  • Loading branch information
jmid committed Jul 13, 2023
1 parent ca4d39b commit c976c47
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/sys/stm_tests.ml
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,6 @@ struct
(match res with
| Ok () -> Model.mem fs path && path_is_a_dir fs path && not (Model.mem fs full_path)
| Error (Sys_error s) ->
(match_msg s full_path "Permission denied") ||
(match_msg s full_path "File exists" && Model.mem fs full_path) ||
(match_msgs s full_path ["No such file or directory";
"Invalid argument"] && not (Model.mem fs path)) ||
Expand All @@ -358,7 +357,6 @@ struct
| Ok () ->
Model.mem fs full_path && path_is_a_dir fs full_path && path_is_an_empty_dir fs full_path
| Error (Sys_error s) ->
(match_msg s full_path "Permission denied") ||
(match_msg s full_path "Directory not empty" && not (path_is_an_empty_dir fs full_path)) ||
(match_msg s full_path "No such file or directory" && not (Model.mem fs full_path)) ||
(match_msgs s full_path ["Not a directory";
Expand All @@ -378,7 +376,6 @@ struct
List.sort String.compare l
= List.sort String.compare (Array.to_list array_of_subdir)))
| Error (Sys_error s) ->
(match_msg s path "Permission denied") ||
(match_msg s path "No such file or directory" && not (Model.mem fs path)) ||
(match_msgs s path ["Not a directory";
"Invalid argument"(*win32*)] && not (path_is_a_dir fs path))
Expand Down

0 comments on commit c976c47

Please sign in to comment.