aboutsummaryrefslogtreecommitdiffstats
path: root/lib/asn1/test
diff options
context:
space:
mode:
authorDan Gudmundsson <[email protected]>2014-11-27 12:50:37 +0100
committerBjörn Gustavsson <[email protected]>2015-01-12 11:40:28 +0100
commit411f2d2c42ab86872186c0ea015f2e76a84c30ab (patch)
treefef104f5d7c3109f9f9ff057539a7d134d12ad59 /lib/asn1/test
parent0c2cb3cba7d8adee96453cf2be008a3edca25c8b (diff)
downloadotp-411f2d2c42ab86872186c0ea015f2e76a84c30ab.tar.gz
otp-411f2d2c42ab86872186c0ea015f2e76a84c30ab.tar.bz2
otp-411f2d2c42ab86872186c0ea015f2e76a84c30ab.zip
asn1: Fix error reporting for the EXTERNAL type
Change to new error handling system and cover with tests.
Diffstat (limited to 'lib/asn1/test')
-rw-r--r--lib/asn1/test/error_SUITE.erl9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/asn1/test/error_SUITE.erl b/lib/asn1/test/error_SUITE.erl
index a8e9d0c2cd..db997d569d 100644
--- a/lib/asn1/test/error_SUITE.erl
+++ b/lib/asn1/test/error_SUITE.erl
@@ -683,6 +683,9 @@ values(Config) ->
" holder-1 HOLDER ::= { &str \"xyz\" }\n"
" holder-2 HOLDER ::= { &str \"xyz\", &obj holder-1 }\n"
+ " ext-1 EXTERNAL ::= {identification bad:{1 2 3}, data-value '123'H}\n"
+ " ext-2 EXTERNAL ::= {identification syntax:{1 2 3}, data '123'H}\n"
+
" int INTEGER ::= 42\n"
"END\n">>},
{error,
@@ -724,7 +727,11 @@ values(Config) ->
{structured_error,{M,23},asn1ct_check,
illegal_bitstring_value},
{structured_error,{M,24},asn1ct_check,
- illegal_bitstring_value}
+ illegal_bitstring_value},
+ {structured_error,{M,31},asn1ct_check,
+ illegal_external_value},
+ {structured_error,{M,32},asn1ct_check,
+ illegal_external_value}
]
} = run(P, Config),
ok.