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:08 UTC

[couchdb-rebar] branch eunit-timeout created (now d4fc74d)

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

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


      at d4fc74d  introudce timeout for eunit_primitive

This branch includes the following new commits:

     new d4fc74d  introudce timeout for eunit_primitive

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



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

Posted by ji...@apache.org.
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);