aboutsummaryrefslogtreecommitdiffstats
path: root/lib/asn1/test
diff options
context:
space:
mode:
authorDan Gudmundsson <[email protected]>2014-12-01 13:22:47 +0100
committerBjörn Gustavsson <[email protected]>2015-01-12 11:40:29 +0100
commite9b758a50a648e4d0a54963a6530a4b3cb3f68ce (patch)
tree85b9d994d7a475d63981c03329622269a14cd7ff /lib/asn1/test
parent80d35f40a69215cc1a2c883941a7b137a90db725 (diff)
downloadotp-e9b758a50a648e4d0a54963a6530a4b3cb3f68ce.tar.gz
otp-e9b758a50a648e4d0a54963a6530a4b3cb3f68ce.tar.bz2
otp-e9b758a50a648e4d0a54963a6530a4b3cb3f68ce.zip
Modernize error handling for named values
Diffstat (limited to 'lib/asn1/test')
-rw-r--r--lib/asn1/test/error_SUITE.erl5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/asn1/test/error_SUITE.erl b/lib/asn1/test/error_SUITE.erl
index ca3f9f55e9..d41134e5cb 100644
--- a/lib/asn1/test/error_SUITE.erl
+++ b/lib/asn1/test/error_SUITE.erl
@@ -258,11 +258,14 @@ integers(Config) ->
" Int1 ::= INTEGER {a(1), a(1)}\n"
" Int2 ::= INTEGER {a(1), b(2), a(3)}\n"
" Int3 ::= INTEGER {x(1), y(1)}\n"
+ " i0 INTEGER ::= 1\n"
+ " Int4 ::= INTEGER {x(i0), y(undef) }\n"
"END\n">>},
{error,
[{structured_error,{M,2},asn1ct_check,{namelist_redefinition,a}},
{structured_error,{M,3},asn1ct_check,{namelist_redefinition,a}},
- {structured_error,{M,4},asn1ct_check,{value_reused,1}}
+ {structured_error,{M,4},asn1ct_check,{value_reused,1}},
+ {structured_error,{M,6},asn1ct_check,{undefined,undef}}
]} = run(P, Config),
ok.