@@ -96,7 +96,7 @@ defmodule Kernel.CLI.ExecutableTest do
96
96
assert { _output , 0 } =
97
97
System . cmd ( elixir_executable ( context . cli_extension ) , [ "-e" , "Time.new!(0, 0, 0)" ] )
98
98
99
- # TODO: remove this once we bump CI to 26.3
99
+ # TODO: remove this once we bump CI to Erlang/OTP 27
100
100
if not ( windows? ( ) and System . otp_release ( ) == "26" ) do
101
101
{ output , 0 } =
102
102
System . cmd ( iex_executable ( context . cli_extension ) , [
@@ -116,15 +116,19 @@ defmodule Kernel.CLI.ExecutableTest do
116
116
end
117
117
end
118
118
119
+ @ tag :unix
120
+ # This test hangs on Windows but "iex --version" works on the command line
121
+ test "iex smoke test" , % { cli_extension: cli_extension } do
122
+ output = iex ( ~c" --version" , cli_extension )
123
+ assert output =~ "Erlang/OTP #{ System . otp_release ( ) } "
124
+ assert output =~ "IEx #{ System . version ( ) } "
125
+ end
126
+
119
127
test "--version smoke test" , % { cli_extension: cli_extension } do
120
128
output = elixir ( ~c" --version" , cli_extension )
121
129
assert output =~ "Erlang/OTP #{ System . otp_release ( ) } "
122
130
assert output =~ "Elixir #{ System . version ( ) } "
123
131
124
- output = iex ( ~c" --version" , cli_extension )
125
- assert output =~ "Erlang/OTP #{ System . otp_release ( ) } "
126
- assert output =~ "IEx #{ System . version ( ) } "
127
-
128
132
output = elixir ( ~c" --version -e \" IO.puts(:test_output)\" " , cli_extension )
129
133
assert output =~ "Erlang/OTP #{ System . otp_release ( ) } "
130
134
assert output =~ "Elixir #{ System . version ( ) } "
0 commit comments