aboutsummaryrefslogtreecommitdiffstats
path: root/lib/asn1/test/error_SUITE.erl
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2014-09-22 14:22:50 +0200
committerBjörn Gustavsson <[email protected]>2015-01-12 11:40:24 +0100
commit2ae4e110b687b31aaa9a0e2d06b0e019819ab753 (patch)
treea51bd12172532a388ef8428f7a53618818050181 /lib/asn1/test/error_SUITE.erl
parent6b10f918a4445d990152e4a31f8fde5cc9c8906a (diff)
downloadotp-2ae4e110b687b31aaa9a0e2d06b0e019819ab753.tar.gz
otp-2ae4e110b687b31aaa9a0e2d06b0e019819ab753.tar.bz2
otp-2ae4e110b687b31aaa9a0e2d06b0e019819ab753.zip
Clean up get_fieldname_element/3
Also add proper error handling.
Diffstat (limited to 'lib/asn1/test/error_SUITE.erl')
-rw-r--r--lib/asn1/test/error_SUITE.erl8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/asn1/test/error_SUITE.erl b/lib/asn1/test/error_SUITE.erl
index fe7f144e4e..6c4920dcf7 100644
--- a/lib/asn1/test/error_SUITE.erl
+++ b/lib/asn1/test/error_SUITE.erl
@@ -418,6 +418,8 @@ values(Config) ->
" int3 INTEGER ::= not-defined\n"
" int4 INTEGER ::= holder-1.&str\n"
" int5 INTEGER ::= holder-2.&obj\n"
+ " int6 INTEGER ::= holder-2.&undefined-field\n"
+ " int7 INTEGER ::= holder-2.&UndefinedField.&id\n"
" HOLDER ::= CLASS {\n"
" &str IA5String,\n"
@@ -444,7 +446,11 @@ values(Config) ->
{structured_error,{M,9},asn1ct_check,
illegal_integer_value},
{structured_error,{M,10},asn1ct_check,
- illegal_integer_value}
+ illegal_integer_value},
+ {structured_error,{M,11},asn1ct_check,
+ {undefined_field,'undefined-field'}},
+ {structured_error,{M,12},asn1ct_check,
+ {undefined_field,'UndefinedField'}}
]
} = run(P, Config),
ok.