You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by va...@apache.org on 2017/09/28 21:02:53 UTC

[45/50] meck commit: updated refs/heads/master to 3544aca

Always add debug_info to compile opts for mocks


Project: http://git-wip-us.apache.org/repos/asf/couchdb-meck/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-meck/commit/fcc551e3
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-meck/tree/fcc551e3
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-meck/diff/fcc551e3

Branch: refs/heads/master
Commit: fcc551e3feaadf0e1f06451adcd7a2928d7bd66d
Parents: 0878f97
Author: Eric Entin <er...@ericent.in>
Authored: Tue Jul 25 10:46:16 2017 -0400
Committer: Adam Lindberg <he...@alind.io>
Committed: Mon Aug 7 13:39:48 2017 +0200

----------------------------------------------------------------------
 src/meck_proc.erl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-meck/blob/fcc551e3/src/meck_proc.erl
----------------------------------------------------------------------
diff --git a/src/meck_proc.erl b/src/meck_proc.erl
index 2bd8169..e750f96 100644
--- a/src/meck_proc.erl
+++ b/src/meck_proc.erl
@@ -358,7 +358,7 @@ backup_original(Mod, NoPassCover, EnableOnLoad) ->
         Forms0 = meck_code:abstract_code(meck_code:beam_file(Mod)),
         Forms = meck_code:enable_on_load(Forms0, EnableOnLoad),
         NewName = meck_util:original_name(Mod),
-        CompileOpts = meck_code:compile_options(meck_code:beam_file(Mod)),
+        CompileOpts = [debug_info | meck_code:compile_options(meck_code:beam_file(Mod))],
         Renamed = meck_code:rename_module(Forms, NewName),
         Binary = meck_code:compile_and_load_forms(Renamed, CompileOpts),