Skip to content

Commit 2490cc8

Browse files
committed
Add possible Windows errors to File.cd!/1 tests
1 parent 030e0c7 commit 2490cc8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/elixir/test/elixir/file_test.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1887,7 +1887,7 @@ defmodule FileTest do
18871887

18881888
test "invalid_cd!" do
18891889
message =
1890-
~r"\Acould not set current working directory to #{inspect(fixture_path("file.txt"))}: (not a directory|no such file or directory)"
1890+
~r"\Acould not set current working directory to #{inspect(fixture_path("file.txt"))}: (not a directory|no such file or directory|I/O error)"
18911891

18921892
assert_raise File.Error, message, fn ->
18931893
File.cd!(fixture_path("file.txt"))

0 commit comments

Comments
 (0)