Przeglądaj źródła

Fix line numbers detection in tests for OTP >= 17

pull/236/head
James Fish 10 lat temu
rodzic
commit
2ce67d5d53
1 zmienionych plików z 1 dodań i 1 usunięć
  1. +1
    -1
      test/lager_test_backend.erl

+ 1
- 1
test/lager_test_backend.erl Wyświetl plik

@ -109,7 +109,7 @@ print_bad_state() ->
has_line_numbers() ->
%% are we R15 or greater
Rel = erlang:system_info(otp_release),
{match, [Major]} = re:run(Rel, "^R(\\d+)[A|B](|0(\\d))", [{capture, [1], list}]),
{match, [Major]} = re:run(Rel, "(?|(^R(\\d+)[A|B](|0(\\d)))|(^(\\d+)$))", [{capture, [2], list}]),
list_to_integer(Major) >= 15.
not_running_test() ->

Ładowanie…
Anuluj
Zapisz