This is an automated email from the ASF dual-hosted git repository. davisp pushed a commit to branch optimize-ddoc-cache in repository https://gitbox.apache.org/repos/asf/couchdb.git
commit 5d871fb39c38f1d88af8a6df86c6bc9949ef4a9c Author: Paul J. Davis <[email protected]> AuthorDate: Thu Jul 6 11:08:34 2017 -0500 FIXUP: Automatically detect coverage runs --- src/ddoc_cache/test/ddoc_cache_tutil.erl | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/ddoc_cache/test/ddoc_cache_tutil.erl b/src/ddoc_cache/test/ddoc_cache_tutil.erl index acf3db1..6463b38 100644 --- a/src/ddoc_cache/test/ddoc_cache_tutil.erl +++ b/src/ddoc_cache/test/ddoc_cache_tutil.erl @@ -83,8 +83,13 @@ purge_modules() -> case application:get_key(ddoc_cache, modules) of {ok, Mods} -> lists:foreach(fun(Mod) -> - code:delete(Mod), - code:purge(Mod) + case code:which(Mod) of + cover_compiled -> + ok; + _ -> + code:delete(Mod), + code:purge(Mod) + end end, Mods); undefined -> ok -- To stop receiving notification emails like this one, please contact "[email protected]" <[email protected]>.
