Browse Source

fix compiler warnings in test code

Ulf Wiger 10 years ago
parent
commit
b44bd3c2d7
2 changed files with 4 additions and 4 deletions
  1. 1 1
      test/gproc_test_lib.erl
  2. 3 3
      test/gproc_tests.erl

+ 1 - 1
test/gproc_test_lib.erl

@@ -127,7 +127,7 @@ got_msg(Pb, Tag) ->
 	    end}).
 
 t_pool_contains_atleast(Pool,N)->
-    Existing = lists:foldl(fun({X,Y},Acc)->
+    Existing = lists:foldl(fun({_X,_Y},Acc)->
                                    Acc+1;
                               (_,Acc) ->
                                    Acc

+ 3 - 3
test/gproc_tests.erl

@@ -795,8 +795,8 @@ t_subscribe() ->
 t_simple_pool()->
     Key = p1w1,
     From = {n,l,Key},
-    P = t_spawn_reg(From),
-
+    _P = t_spawn_reg(From),
+    
     %% create a new pool
     ?assertEqual(gproc_pool:new(p1), ok),
 
@@ -818,7 +818,7 @@ t_simple_pool()->
     Ref = erlang:make_ref(),
     gproc:send(From, {self(), Ref, die}),
     receive
-        {_, Ref, Returned}=X ->
+        {_, Ref, Returned} ->
             ?assertEqual(Returned, ok)
     after 1000 ->
             %% the next 3 tests should fail if the worker is still alive