소스 검색

Fix line numbers detection in tests for OTP >= 17

pull/236/head
James Fish 10 년 전
부모
커밋
2ce67d5d53
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. +1
    -1
      test/lager_test_backend.erl

+ 1
- 1
test/lager_test_backend.erl 파일 보기

@ -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() ->

불러오는 중...
취소
저장