소스 검색

测试添加

master
SisMaker 4 년 전
부모
커밋
8233b4d3e6
1개의 변경된 파일8개의 추가작업 그리고 1개의 파일을 삭제
  1. +8
    -1
      src/testCase/utTryCatchCase.erl

+ 8
- 1
src/testCase/utTryCatchCase.erl 파일 보기

@ -238,7 +238,14 @@ testTryCatch2(Type, TestLoop) ->
Type:Reason:Strace ->
case TestLoop of
true -> Strace;
false -> io:format("try .. catch block caught exception of ~p: ~p: ~p:~n", [Type, Reason, Strace])
false ->
S1 = utParseStack:parseStack(Strace),
S2 = utParseStack:parseStack(element(2, erlang:process_info(self(), current_stacktrace))),
io:format(S1),
io:format(S2),
io:format("try .. catch block caught exception of ~p: ~p: ~n ~s:~n", [Type, Reason, io_lib:format(S1, [])]),
io:format("try .. catch block caught exception of ~p: ~p: ~n ~s:~n", [Type, Reason, io_lib:format(S2, [])])
end
end.

불러오는 중...
취소
저장