File 2540-eunit-Fix-handling-of-locations-and-annotations.patch of Package erlang

From f2fcba57bd0c932882460a7523e2cbed634975dd Mon Sep 17 00:00:00 2001
From: Hans Bolinder <hasse@erlang.org>
Date: Mon, 13 Feb 2017 15:48:59 +0100
Subject: [PATCH 11/15] eunit: Fix handling of locations and annotations

---
 lib/eunit/src/eunit.erl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/eunit/src/eunit.erl b/lib/eunit/src/eunit.erl
index 2c832a7f7..1ace85ffd 100644
--- a/lib/eunit/src/eunit.erl
+++ b/lib/eunit/src/eunit.erl
@@ -256,7 +256,7 @@ all_options(Opts) ->
 	false -> Opts;
 	S ->
 	    {ok, Ts, _} = erl_scan:string(S),
-	    {ok, V} = erl_parse:parse_term(Ts ++ [{dot,1}]),
+	    {ok, V} = erl_parse:parse_term(Ts ++ [{dot,erl_anno:new(1)}]),
 	    if is_list(V) -> Opts ++ V;
 	       true -> Opts ++ [V]
 	    end
-- 
2.12.0

openSUSE Build Service is sponsored by