Permalink
Browse files

Make tests run under rebar, and add rebar executable

  • Loading branch information...
1 parent a96985a commit 8562fce3778318b0edda2a2b4248a4a5ee8f2b9f @Vagabond Vagabond committed Nov 19, 2010
Showing with 6 additions and 6 deletions.
  1. BIN rebar
  2. +1 −1 src/errd_server.erl
  3. +5 −5 src/errdb.erl
View
BIN rebar
Binary file not shown.
View
@@ -218,7 +218,7 @@ parse_rrd_response(Cmd, {error, Error}, Lines) ->
rrd_cmd_test() ->
{ok, Pid} = ?MODULE:start_link(),
- ?assertMatch(ok, gen_server:call(Pid, {cd, "/"})),
+ ?assertMatch({ok, []}, gen_server:call(Pid, {cd, "/"})),
?MODULE:stop(Pid).
% vim: set ts=4 sw=4 expandtab:
View
@@ -65,11 +65,11 @@ delete(PathName) ->
%%====================================================================
errdb_test() ->
- ?assertMatch(false, filelib:is_dir("priv/test")),
- ?assertMatch(ok, create("priv/test", [test])),
- ?assertMatch({ok, {"priv/test/data.rrd",
+ ?assertMatch(false, filelib:is_dir("../priv/test")),
+ ?assertMatch(ok, create("../priv/test", [test])),
+ ?assertMatch({ok, {"../priv/test/data.rrd",
[test]}},
- read("priv/test")),
- ?assertMatch(ok, delete("priv/test")).
+ read("../priv/test")),
+ ?assertMatch(ok, delete("../priv/test")).
% vim: set ts=4 sw=4 expandtab:

0 comments on commit 8562fce

Please sign in to comment.