aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2020-06-18 15:03:20 +0200
committerLoïc Hoguin <[email protected]>2020-06-18 15:03:20 +0200
commit4ad50cdf9dd258ef40c8cbb245bf5db11cbd1f25 (patch)
tree5865f1f306431aa4681da2a9c1f942053ba9d0cb
parent9de378e9b0489775a41dedea085e9d77ca52e256 (diff)
downloaderlang.mk-4ad50cdf9dd258ef40c8cbb245bf5db11cbd1f25.tar.gz
erlang.mk-4ad50cdf9dd258ef40c8cbb245bf5db11cbd1f25.tar.bz2
erlang.mk-4ad50cdf9dd258ef40c8cbb245bf5db11cbd1f25.zip
Add missing exports to Dialyzer tests
-rw-r--r--test/plugin_dialyzer.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/plugin_dialyzer.mk b/test/plugin_dialyzer.mk
index fbd03e1..609d827 100644
--- a/test/plugin_dialyzer.mk
+++ b/test/plugin_dialyzer.mk
@@ -26,6 +26,7 @@ dialyzer-app: init
$i "Create a module with a function that has no local return"
$t printf "%s\n" \
"-module(warn_me)." \
+ "-export([doit/0])." \
"doit() -> 1 = 2, ok." > $(APP)/src/warn_me.erl
$i "Confirm that Dialyzer errors out"
@@ -65,6 +66,7 @@ dialyzer-apps-only: init
$i "Create a module with a function that has no local return"
$t printf "%s\n" \
"-module(warn_me)." \
+ "-export([doit/0])." \
"doit() -> 1 = 2, ok." > $(APP)/apps/my_app/src/warn_me.erl
$i "Confirm that Dialyzer errors out"
@@ -142,6 +144,7 @@ dialyzer-check: init
$i "Create a module with a function that has no local return"
$t printf "%s\n" \
"-module(warn_me)." \
+ "-export([doit/0])." \
"doit() -> 1 = 2, ok." > $(APP)/src/warn_me.erl
$i "Confirm that Dialyzer errors out on 'make check'"