summaryrefslogtreecommitdiff
path: root/lib/common_test/src/ct.erl
diff options
context:
space:
mode:
Diffstat (limited to 'lib/common_test/src/ct.erl')
-rw-r--r--lib/common_test/src/ct.erl6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/common_test/src/ct.erl b/lib/common_test/src/ct.erl
index bfa7b25862..02c14651d9 100644
--- a/lib/common_test/src/ct.erl
+++ b/lib/common_test/src/ct.erl
@@ -1,7 +1,7 @@
%%
%% %CopyrightBegin%
%%
-%% Copyright Ericsson AB 2003-2018. All Rights Reserved.
+%% Copyright Ericsson AB 2003-2022. All Rights Reserved.
%%
%% Licensed under the Apache License, Version 2.0 (the "License");
%% you may not use this file except in compliance with the License.
@@ -296,6 +296,8 @@ capture_get([ExclCat | ExclCategories]) ->
capture_get([]) ->
test_server:capture_get().
+-spec fail(term()) -> no_return().
+
fail(Reason) ->
try
exit({test_case_failed,Reason})
@@ -308,6 +310,8 @@ fail(Reason) ->
erlang:raise(Class, R, Stk)
end.
+-spec fail(io:format(), [term()]) -> no_return().
+
fail(Format, Args) ->
try io_lib:format(Format, Args) of
Str ->