aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel/test
diff options
context:
space:
mode:
authorSiri Hansen <[email protected]>2012-10-24 16:55:45 +0200
committerSiri Hansen <[email protected]>2012-10-30 11:19:00 +0100
commitb6fe934ea73f8eeaaa70b786f53ee6e8f2a52d2c (patch)
tree82489050a71e3f8b8e40645969c876605b632695 /lib/kernel/test
parent66a6e7caa4b7b64566d08fd5e93ce250773a50a7 (diff)
downloadotp-b6fe934ea73f8eeaaa70b786f53ee6e8f2a52d2c.tar.gz
otp-b6fe934ea73f8eeaaa70b786f53ee6e8f2a52d2c.tar.bz2
otp-b6fe934ea73f8eeaaa70b786f53ee6e8f2a52d2c.zip
Use code:lib_dir instead of code:which to get application directory
code_SUITE:ext_mod_dep used code:which(kernel) to get the path to the kernel ebin directory. This failed when kernel was cover compiled, since code:which then returns 'cover_compiled'. Using code:lib_dir instead solved the problem.
Diffstat (limited to 'lib/kernel/test')
-rw-r--r--lib/kernel/test/code_SUITE.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/kernel/test/code_SUITE.erl b/lib/kernel/test/code_SUITE.erl
index 5e0300639e..d7424c0c9a 100644
--- a/lib/kernel/test/code_SUITE.erl
+++ b/lib/kernel/test/code_SUITE.erl
@@ -684,8 +684,8 @@ ext_mod_dep(Config) when is_list(Config) ->
xref:set_default(s, [{verbose,false},{warnings,false},
{builtins,true},{recurse,true}]),
xref:set_library_path(s, code:get_path()),
- xref:add_directory(s, filename:dirname(code:which(kernel))),
- xref:add_directory(s, filename:dirname(code:which(lists))),
+ xref:add_directory(s, filename:join(code:lib_dir(kernel),"ebin")),
+ xref:add_directory(s, filename:join(code:lib_dir(stdlib),"ebin")),
case catch ext_mod_dep2() of
{'EXIT', Reason} ->
xref:stop(s),