anchor.diff:  %% Check if stress test should be stopped because of error.
   %% @end
   %%--------------------------------------------------------------------
  --spec check_error(Rep :: integer(), FailedReps :: map()) -> ok | error.
  -check_error(Rep, _FailedReps) when Rep < ?STRESS_ERRORS_TO_STOP ->
  -    ok;
  +-spec check_error(Rep :: integer(), FailedReps :: map()) -> integer() | permanent_error.
   check_error(Rep, FailedReps) ->
       check_error(Rep - 1, Rep, FailedReps).
   
  +%%--------------------------------------------------------------------
  +%% @private
  +%% @doc
  +%% Check if stress test should be stopped because of error.
  +%% @end
  +%%--------------------------------------------------------------------
  +-spec check_error(Rep :: integer(), Start :: integer(), FailedReps :: map()) -> integer() | permanent_error.
   check_error(Check, Start, _FailedReps) when Start - ?STRESS_ERRORS_TO_STOP > Check ->
  -    error;
  +    permanent_error;
  +check_error(0, Start, _FailedReps) ->
  +    Start - 1;
   check_error(Check, Start, FailedReps) ->
       case maps:is_key(integer_to_binary(Check), FailedReps) of
           false ->
  -            ok;
  +            Start - Check - 1;
           _ ->
               check_error(Check - 1, Start, FailedReps)
       end.
  
positive.code:                        TestTime = timer:now_diff(Now, StartTime) div 1000000,
                         TimeLeft = TimeLimit - TestTime,
  
                         ErrorsHistoryOK = lists:foldl(fun(FR, Acc) ->
                             case Acc of
                                 error ->
                                     error;
                                 _ ->
                                     check_error(Rep, FR)
                             end
                         end, ok, FailedReps),
  
                         case (TimeLeft > 0) and (ErrorsHistoryOK =:= ok) of
                             true ->
                                 ct:print("SUITE: ~p~nCASE: ~p~nCONFIG: ~p~nREPEAT: ~p, TEST TIME ~p sek, TIME LEFT ~p sek",
                                     [SuiteName, CaseName, ConfigName, Rep, TestTime, TimeLeft]),
  
negative.code:     hd(lists:filtermap(fun(#xmlElement{name = copyright, content = [Copyright]}) ->
          {true, list_to_binary(Copyright#xmlText.value)};
          (_) -> false
      end, Doc#xmlElement.content)).
  
  %%--------------------------------------------------------------------
  %% @private
  