Browse Source

Fix hard-coded code paths for eunit test

Joseph Wayne Norton 14 years ago
parent
commit
04d06b31a6
1 changed files with 3 additions and 3 deletions
  1. 3 3
      test/gproc_dist_tests.erl

+ 3 - 3
test/gproc_dist_tests.erl

@@ -268,9 +268,9 @@ start_slave(Name) ->
         _ ->
             ok
     end,
-    {ok, Node} = slave:start(
-		   host(), Name,
-		   "-pa . -pz ../ebin -pa ../deps/gen_leader/ebin "),
+    Paths = "-pa ./ -pz ../ebin" ++
+        lists:flatten([ " -pa " ++ Path || Path <- code:get_path() ]),
+    {ok, Node} = slave:start(host(), Name, Paths),
     %% io:fwrite(user, "Slave node: ~p~n", [Node]),
     Node.