Skip to content

Commit

Permalink
Update end_tc framework calls to check the name of the framework modu…
Browse files Browse the repository at this point in the history
…le instead of the return value of the call
  • Loading branch information
garazdawi committed Apr 15, 2011
1 parent fb1eab8 commit 39e1f34
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions lib/test_server/src/test_server.erl
Original file line number Diff line number Diff line change
Expand Up @@ -1193,11 +1193,8 @@ run_test_case_eval1(Mod, Func, Args, Name, RunInit, TCCallback) ->

do_end_tc_call(M,F,Res,Return) ->
Ref = make_ref(),
case test_server_sup:framework_call(
end_tc, [?pl2a(M),F,Res], Ref) of
{fail,FWReason} ->
{failed,FWReason};
Ref ->
case ?pl2a(M) of
ct_framework ->
case test_server_sup:framework_call(
end_tc, [?pl2a(M),F,Res, Return], ok) of
{fail,FWReason} ->
Expand All @@ -1212,8 +1209,14 @@ do_end_tc_call(M,F,Res,Return) ->
NewReturn ->
NewReturn
end;
_ ->
Return
Other ->
case test_server_sup:framework_call(
end_tc, [Other,F,Res], Ref) of
{fail,FWReason} ->
{failed,FWReason};
_Else ->
Return
end
end.

%% the return value is a list and we have to check if it contains
Expand Down

0 comments on commit 39e1f34

Please sign in to comment.