You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ji...@apache.org on 2019/05/24 08:18:09 UTC

[couchdb-rebar] 01/01: introudce timeout for eunit_primitive

This is an automated email from the ASF dual-hosted git repository.

jiangphcn pushed a commit to branch eunit-timeout
in repository https://gitbox.apache.org/repos/asf/couchdb-rebar.git

commit d4fc74d52c36b806a60226249df1b122f0eeae70
Author: jiangph <ji...@cn.ibm.com>
AuthorDate: Fri May 24 16:17:37 2019 +0800

    introudce timeout for eunit_primitive
---
 src/rebar_eunit.erl | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/rebar_eunit.erl b/src/rebar_eunit.erl
index ebf76bc..b047c1b 100644
--- a/src/rebar_eunit.erl
+++ b/src/rebar_eunit.erl
@@ -465,8 +465,10 @@ make_test_primitives(RawTests) ->
         end,
     lists:foldl(F, [], RawTests).
 
+eunit_primitive({timeout, _, _} = Type, M, F) ->
+  {Type, M, F};
 eunit_primitive(Type, M, F) ->
-    {Type, M, F}.
+  {timeout, 999999999999999999, [{Type, M, F}]}.
 
 pre15b02_eunit_primitive(test, M, F) ->
     eunit_test:function_wrapper(M, F);