Преглед на файлове

Fix eunit regression introduced in 2716d83a18

Use alternative way to detect net_kernel:stop/0 has succeeded as
suggested by Ulf Wiger.
pull/3/head
Tuncer Ayaz преди 11 години
родител
ревизия
0550560221
променени са 1 файла, в които са добавени 6 реда и са изтрити 6 реда
  1. +6
    -6
      src/rebar_eunit.erl

+ 6
- 6
src/rebar_eunit.erl Целия файл

@ -802,11 +802,11 @@ pause_until_net_kernel_stopped() ->
pause_until_net_kernel_stopped(0) ->
exit(net_kernel_stop_failed);
pause_until_net_kernel_stopped(N) ->
try
timer:sleep(100),
pause_until_net_kernel_stopped(N - 1)
catch
error:badarg ->
case node() of
'nonode@nohost' ->
?DEBUG("Stopped net kernel.\n", []),
ok
ok;
_ ->
timer:sleep(100),
pause_until_net_kernel_stopped(N - 1)
end.

Зареждане…
Отказ
Запис