@@ -96,7 +96,7 @@ defmodule Kernel.CLI.ExecutableTest do
9696 assert { _output , 0 } =
9797 System . cmd ( elixir_executable ( context . cli_extension ) , [ "-e" , "Time.new!(0, 0, 0)" ] )
9898
99- # TODO: remove this once we bump CI to 26.3
99+ # TODO: remove this once we bump CI to Erlang/OTP 27
100100 if not ( windows? ( ) and System . otp_release ( ) == "26" ) do
101101 { output , 0 } =
102102 System . cmd ( iex_executable ( context . cli_extension ) , [
@@ -116,15 +116,19 @@ defmodule Kernel.CLI.ExecutableTest do
116116 end
117117 end
118118
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+
119127 test "--version smoke test" , % { cli_extension: cli_extension } do
120128 output = elixir ( ~c" --version" , cli_extension )
121129 assert output =~ "Erlang/OTP #{ System . otp_release ( ) } "
122130 assert output =~ "Elixir #{ System . version ( ) } "
123131
124- output = iex ( ~c" --version" , cli_extension )
125- assert output =~ "Erlang/OTP #{ System . otp_release ( ) } "
126- assert output =~ "IEx #{ System . version ( ) } "
127-
128132 output = elixir ( ~c" --version -e \" IO.puts(:test_output)\" " , cli_extension )
129133 assert output =~ "Erlang/OTP #{ System . otp_release ( ) } "
130134 assert output =~ "Elixir #{ System . version ( ) } "
0 commit comments