Permalink
Browse files

Fix eunit tests to "start" compiler and syntax_tools

This is just silly busy-work since they're library applications, but
whatever.
  • Loading branch information...
1 parent b46e377 commit caad1f8c83936722a0077370530e6b476650e67b @Vagabond Vagabond committed Feb 27, 2012
@@ -128,6 +128,8 @@ console_log_test_() ->
application:load(lager),
application:set_env(lager, handlers, []),
application:set_env(lager, error_logger_redirect, false),
+ application:start(compiler),
+ application:start(syntax_tools),
application:start(lager)
end,
fun(_) ->
View
@@ -240,6 +240,8 @@ filesystem_test_() ->
application:set_env(lager, handlers, [{lager_test_backend, info}]),
application:set_env(lager, error_logger_redirect, true),
application:unset_env(lager, crash_log),
+ application:start(compiler),
+ application:start(syntax_tools),
application:start(lager),
timer:sleep(100),
lager_test_backend:flush()
@@ -234,6 +234,8 @@ filesystem_test_() ->
application:load(lager),
application:set_env(lager, handlers, [{lager_test_backend, info}]),
application:set_env(lager, error_logger_redirect, false),
+ application:start(compiler),
+ application:start(syntax_tools),
application:start(lager)
end,
fun(_) ->
@@ -106,6 +106,8 @@ reinstall_on_initial_failure_test_() ->
application:set_env(lager, handlers, [{lager_test_backend, info}, {lager_crash_backend, [from_now(2), undefined]}]),
application:set_env(lager, error_logger_redirect, false),
application:unset_env(lager, crash_log),
+ application:start(compiler),
+ application:start(syntax_tools),
application:start(lager),
try
?assertEqual(1, lager_test_backend:count()),
@@ -132,6 +134,8 @@ reinstall_on_runtime_failure_test_() ->
application:set_env(lager, handlers, [{lager_test_backend, info}, {lager_crash_backend, [undefined, from_now(5)]}]),
application:set_env(lager, error_logger_redirect, false),
application:unset_env(lager, crash_log),
+ application:start(compiler),
+ application:start(syntax_tools),
application:start(lager),
try
?assertEqual(0, lager_test_backend:count()),
@@ -225,6 +225,8 @@ setup() ->
application:load(lager),
application:set_env(lager, handlers, [{?MODULE, info}]),
application:set_env(lager, error_logger_redirect, false),
+ application:start(compiler),
+ application:start(syntax_tools),
application:start(lager),
gen_event:call(lager_event, ?MODULE, flush).
@@ -246,6 +248,8 @@ error_logger_redirect_crash_test_() ->
application:load(lager),
application:set_env(lager, error_logger_redirect, true),
application:set_env(lager, handlers, [{?MODULE, error}]),
+ application:start(compiler),
+ application:start(syntax_tools),
application:start(lager),
crash:start()
end,

0 comments on commit caad1f8

Please sign in to comment.