eiri commented on a change in pull request #587: Properly kill OS daemons 
during test
URL: https://github.com/apache/couchdb/pull/587#discussion_r120945546
 
 

 ##########
 File path: src/couch/test/couchdb_os_daemons_tests.erl
 ##########
 @@ -56,9 +56,16 @@ setup(DName) ->
     {Ctx, OsDPid}.
 
 teardown(_, {Ctx, OsDPid}) ->
-    test_util:stop_sync_throw(OsDPid, fun() ->
-        exit(OsDPid, shutdown)
-    end, {timeout, os_daemon_stop}, ?TIMEOUT),
+    try
+        test_util:stop_sync_throw(OsDPid, fun() ->
+            exit(OsDPid, shutdown)
+        end, {timeout, os_daemon_stop}, ?TIMEOUT)
+    catch
+        {timeout, os_daemon_stop} ->
+            Msg = "WARNING: OS daemons test stop ~p msec timeout exceeded",
+            io:format(standard_error, Msg, [?TIMEOUT]),
 
 Review comment:
   I suspect it has something to do with how rebar sets `DEBUG` - `NODEBUG` 
macros, but not sure, maybe _it is_ how travis treats stdout and stderr.
   
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to