aboutsummaryrefslogtreecommitdiffstats
path: root/erts/test/erlc_SUITE.erl
diff options
context:
space:
mode:
authorChristopher Faulet <[email protected]>2009-12-15 16:56:13 +0100
committerBjörn Gustavsson <[email protected]>2010-01-19 16:23:33 +0100
commit96773ebcef2fe5949695a4fd923343ec4b049087 (patch)
tree38d4645c7cff88529049aadef1c1d67616bd0d61 /erts/test/erlc_SUITE.erl
parent5fdb43ee9adb9081998a2428ba2e5b001c067393 (diff)
downloadotp-96773ebcef2fe5949695a4fd923343ec4b049087.tar.gz
otp-96773ebcef2fe5949695a4fd923343ec4b049087.tar.bz2
otp-96773ebcef2fe5949695a4fd923343ec4b049087.zip
Add option -Werror in erlc(1)
Like in gcc, this option treats warnings as errors.
Diffstat (limited to 'erts/test/erlc_SUITE.erl')
-rw-r--r--erts/test/erlc_SUITE.erl7
1 files changed, 7 insertions, 0 deletions
diff --git a/erts/test/erlc_SUITE.erl b/erts/test/erlc_SUITE.erl
index 1d944811aa..c91471e412 100644
--- a/erts/test/erlc_SUITE.erl
+++ b/erts/test/erlc_SUITE.erl
@@ -56,6 +56,13 @@ compile_erl(Config) when is_list(Config) ->
?line run(Config, Cmd, FileName, "-W0", ["_OK_"]),
+ %% Try treating warnings as errors.
+
+ ?line run(Config, Cmd, FileName, "-Werror",
+ ["compile: warnings being treated as errors\$",
+ "Warning: function foo/0 is unused\$",
+ "_ERROR_"]),
+
%% Check a bad file.
?line BadFile = filename:join(SrcDir, "erl_test_bad.erl"),