Skip to content

Commit

Permalink
revert back to simple eunit test
Browse files Browse the repository at this point in the history
  • Loading branch information
developer committed Mar 7, 2011
1 parent 984fb81 commit 4669587
Showing 1 changed file with 3 additions and 21 deletions.
24 changes: 3 additions & 21 deletions test/glitter_sup_test.erl
Expand Up @@ -2,24 +2,6 @@
-ifdef (TEST).
-include_lib("eunit/include/eunit.hrl").

start_stop_test_()->
{
inorder,
{
setup,
fun setup/0,
[
%fun start_server_test/0
{"Cleanly start server", fun start_server_test/0}
],
fun teardown/0}
}.

setup()->
ok.

teardown()->
ok.

ensure_not_started(App) when is_atom(App) ->
case application:stop(App) of
Expand All @@ -29,7 +11,7 @@ ensure_not_started(App) when is_atom(App) ->
end.

ensure_not_loaded(App) when is_atom(App)->
case application:loaded(App) of
case application:load(App) of
ok -> ok;
{error,{not_loaded,sasl}} -> ok;
Else -> Else
Expand All @@ -39,8 +21,8 @@ start_server_test()->
App = glitter,
ok = ensure_not_started(App),
ok = ensure_not_loaded(App),
% {ok, PID} = glitter_sup:start_link(),
% true = erlang:exit(PID, kill),
{ok, PID} = glitter_sup:start_link(),
true = erlang:exit(PID, kill),
ok.


Expand Down

0 comments on commit 4669587

Please sign in to comment.