Skip to content

Commit

Permalink
Fix line numbers detection in tests for OTP >= 17
Browse files Browse the repository at this point in the history
  • Loading branch information
fishcakez committed Oct 23, 2014
1 parent dd26760 commit 2ce67d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/lager_test_backend.erl
Original file line number Diff line number Diff line change
Expand Up @@ -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() ->
Expand Down

0 comments on commit 2ce67d5

Please sign in to comment.