Skip to content

Commit

Permalink
add dbg
Browse files Browse the repository at this point in the history
  • Loading branch information
akash-akya committed Jun 21, 2024
1 parent 8170d9d commit e2839b0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/ex_cmd_exit_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ defmodule ExCmdExitTest do
)

port_info = Port.info(port)
IO.inspect(port_info)

Check warning on line 14 in test/ex_cmd_exit_test.exs

View workflow job for this annotation

GitHub Actions / Lint OTP 26.x / Elixir 1.16.x

There should be no calls to `IO.inspect/1`.
os_pid = port_info[:os_pid]

on_exit(fn ->
Expand All @@ -35,6 +36,8 @@ defmodule ExCmdExitTest do

defp os_process_alive?(pid) do
if windows?() do
IO.inspect(["tasklist", "/fi", "pid eq #{pid}"])

Check warning on line 39 in test/ex_cmd_exit_test.exs

View workflow job for this annotation

GitHub Actions / Lint OTP 26.x / Elixir 1.16.x

There should be no calls to `IO.inspect/1`.

case cmd(["tasklist", "/fi", "pid eq #{pid}"]) do
{"INFO: No tasks are running which match the specified criteria.\r\n", 0} -> false
{_, 0} -> true
Expand Down

0 comments on commit e2839b0

Please sign in to comment.