Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Fix unused variables #25

Merged
merged 1 commit into from

2 participants

@norton

Fix unused variables found under test directory.

@uwiger uwiger merged commit b8cb5f8 into uwiger:master
@uwiger
Owner

Thanks - merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Aug 22, 2012
  1. @norton

    Fix unused variables

    norton authored
This page is out of date. Refresh to see the latest.
Showing with 8 additions and 8 deletions.
  1. +3 −3 test/gproc_dist_tests.erl
  2. +5 −5 test/gproc_tests.erl
View
6 test/gproc_dist_tests.erl
@@ -106,14 +106,14 @@ t_simple_reg([H|_] = Ns) ->
?assertMatch(ok, t_lookup_everywhere(Name, Ns, undefined)),
?assertMatch(ok, t_call(P, die)).
-t_simple_reg_or_locate([A,B|_] = Ns) ->
+t_simple_reg_or_locate([A,B|_] = _Ns) ->
Name = ?T_NAME,
P1 = t_spawn(A),
- Ref = erlang:monitor(process, P1),
+ _Ref = erlang:monitor(process, P1),
?assertMatch({P1, the_value},
t_call(P1, {apply, gproc, reg_or_locate, [Name, the_value]})),
P2 = t_spawn(B),
- Ref2 = erlang:monitor(process, P2),
+ _Ref2 = erlang:monitor(process, P2),
?assertMatch({P1, the_value},
t_call(P2, {apply, gproc, reg_or_locate, [Name, other_value]})),
?assertMatch(ok, t_call(P1, die)),
View
10 test/gproc_tests.erl
@@ -171,21 +171,21 @@ t_reg_or_locate3() ->
fun() ->
P ! {self(), ok},
receive
- {'DOWN',Ref,_,_,_} -> ok
+ {'DOWN',_Ref,_,_,_} -> ok
end
end),
?assert(P =/= P1),
?assert(Value =:= the_value),
- Ref = erlang:monitor(process, P1),
+ _Ref = erlang:monitor(process, P1),
receive
{P1, ok} -> ok;
- {'DOWN', Ref, _, _, Reason} ->
+ {'DOWN', _Ref, _, _, _Reason} ->
?assert(process_died_unexpectedly)
end,
?assertMatch({P1, the_value}, gproc:reg_or_locate({n,l,foo})),
exit(P1, kill),
receive
- {'DOWN',R1,_,_,_} ->
+ {'DOWN',_R1,_,_,_} ->
ok
end.
@@ -518,7 +518,7 @@ t_qlc_dead() ->
gproc:reg({p, l, {p,2}}, y),
P0 ! {self(), ok},
receive
- {P, goodbye} -> ok;
+ {_P, goodbye} -> ok;
{'DOWN', Ref, _, _, _} ->
ok
end
Something went wrong with that request. Please try again.