aboutsummaryrefslogtreecommitdiffstats
path: root/lib/snmp
diff options
context:
space:
mode:
authorTuncer Ayaz <[email protected]>2011-09-06 20:21:49 +0200
committerTuncer Ayaz <[email protected]>2011-09-08 14:02:19 +0200
commitbbdc6a3c0fac080af7b60e6cf7d9732532027939 (patch)
tree07f979a5eed9fbcc4d82dc09246757467e4e49f9 /lib/snmp
parent130f34e9dece00f9f0ff785921cdded1914b69de (diff)
downloadotp-bbdc6a3c0fac080af7b60e6cf7d9732532027939.tar.gz
otp-bbdc6a3c0fac080af7b60e6cf7d9732532027939.tar.bz2
otp-bbdc6a3c0fac080af7b60e6cf7d9732532027939.zip
snmp: extend warnings_as_errors test
Diffstat (limited to 'lib/snmp')
-rw-r--r--lib/snmp/test/snmp_compiler_test.erl9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/snmp/test/snmp_compiler_test.erl b/lib/snmp/test/snmp_compiler_test.erl
index cee11ba97a..c964b08168 100644
--- a/lib/snmp/test/snmp_compiler_test.erl
+++ b/lib/snmp/test/snmp_compiler_test.erl
@@ -47,7 +47,7 @@
module_identity/1,
agent_capabilities/1,
module_compliance/1,
- warnings_as_errors/1,
+ warnings_as_errors/1,
otp_6150/1,
otp_8574/1,
@@ -101,7 +101,7 @@ all() ->
module_identity,
agent_capabilities,
module_compliance,
- warnings_as_errors,
+ warnings_as_errors,
{group, tickets}
].
@@ -282,8 +282,8 @@ warnings_as_errors(Config) when is_list(Config) ->
MibDir = ?config(mib_dir, Config),
MibFile = join(MibDir, "OTP8574-MIB.mib"),
OutFile = join(Dir, "OTP8574-MIB.bin"),
- Opts = [{group_check, false},
- {outdir, Dir},
+ Opts = [{group_check, false},
+ {outdir, Dir},
{verbosity, trace},
relaxed_row_name_assign_check],
{error, compilation_failed} =
@@ -291,6 +291,7 @@ warnings_as_errors(Config) when is_list(Config) ->
false = filelib:is_regular(OutFile),
{ok, _} = snmpc:compile(MibFile, Opts),
true = filelib:is_regular(OutFile),
+ ok = file:delete(OutFile),
ok.