summaryrefslogtreecommitdiff
path: root/inttest/code_path_no_recurse/test
diff options
context:
space:
mode:
authorJared Morrow <jared@basho.com>2014-04-24 07:15:10 -0600
committerJared Morrow <jared@basho.com>2014-04-24 07:15:10 -0600
commita838a2e4878887e84190070d589248b74edd12c0 (patch)
tree65754ba961d56a4dac18e23e5a55a06f6af7e4bd /inttest/code_path_no_recurse/test
parent8edaa08ba6b051f49ec3631ca1aa424573c3dac6 (diff)
parent99fe270e59b44526b43f2b8d93d51b20d45b62d3 (diff)
Merge pull request #268 from tuncer/code-path-regression
Fix #267 (code path regression)
Diffstat (limited to 'inttest/code_path_no_recurse/test')
-rw-r--r--inttest/code_path_no_recurse/test/codepath_tests.erl12
1 files changed, 12 insertions, 0 deletions
diff --git a/inttest/code_path_no_recurse/test/codepath_tests.erl b/inttest/code_path_no_recurse/test/codepath_tests.erl
new file mode 100644
index 0000000..01a1d2a
--- /dev/null
+++ b/inttest/code_path_no_recurse/test/codepath_tests.erl
@@ -0,0 +1,12 @@
+-module(codepath_tests).
+-include_lib("eunit/include/eunit.hrl").
+
+codepath_test() ->
+ ?assertEqual({module, codepath}, code:ensure_loaded(codepath)),
+ ?assertEqual({module, foodep}, code:ensure_loaded(foodep)),
+ ?assertEqual({module, bazdep}, code:ensure_loaded(bazdep)),
+ ?assert(codepath:codepath()).
+
+unuseddep_test() ->
+ ?assertEqual(non_existing, code:which(unuseddep)),
+ ?assertEqual({error, nofile}, code:ensure_loaded(unuseddep)).