Skip to content

Commit 7291154

Browse files
authoredFeb 29, 2024··
Skip IEx eval smoke test on Windows and Erlang/OTP 26 (#13377)
1 parent 56768ed commit 7291154

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed
 

‎lib/elixir/test/elixir/kernel/cli_test.exs

+10-7
Original file line numberDiff line numberDiff line change
@@ -65,16 +65,19 @@ defmodule Kernel.CLITest do
6565
{output, 0} = System.cmd(elixir_executable(), ["--eval", "IO.puts :hello_world123"])
6666
assert output =~ "hello_world123"
6767

68-
{output, 0} =
69-
System.cmd(iex_executable(), ["--eval", "IO.puts :hello_world123; System.halt()"])
70-
71-
assert output =~ "hello_world123"
72-
7368
{output, 0} = System.cmd(elixir_executable(), ["-e", "IO.puts :hello_world123"])
7469
assert output =~ "hello_world123"
7570

76-
{output, 0} = System.cmd(iex_executable(), ["-e", "IO.puts :hello_world123; System.halt()"])
77-
assert output =~ "hello_world123"
71+
# TODO: remove this once we bump CI to 26.3
72+
unless windows?() and :erlang.system_info(:otp_release) == ~c"26" do
73+
{output, 0} =
74+
System.cmd(iex_executable(), ["--eval", "IO.puts :hello_world123; System.halt()"])
75+
76+
assert output =~ "hello_world123"
77+
78+
{output, 0} = System.cmd(iex_executable(), ["-e", "IO.puts :hello_world123; System.halt()"])
79+
assert output =~ "hello_world123"
80+
end
7881
end
7982

8083
test "--version smoke test" do

0 commit comments

Comments
 (0)
Please sign in to comment.