aboutsummaryrefslogtreecommitdiffstats
path: root/lib/asn1/test/error_SUITE.erl
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2014-11-28 14:38:38 +0100
committerBjörn Gustavsson <[email protected]>2015-01-12 11:40:28 +0100
commit2a343fda2c75f52bbf35b6d5ca9f3c97037c50b5 (patch)
treecfde8eb2db23200fcdbe1636f54463ddc5f28a07 /lib/asn1/test/error_SUITE.erl
parent76075cb862d629a9624ab4db98ff876e261fc796 (diff)
downloadotp-2a343fda2c75f52bbf35b6d5ca9f3c97037c50b5.tar.gz
otp-2a343fda2c75f52bbf35b6d5ca9f3c97037c50b5.tar.bz2
otp-2a343fda2c75f52bbf35b6d5ca9f3c97037c50b5.zip
Modernize error handling for instatiation of parameterized types
Diffstat (limited to 'lib/asn1/test/error_SUITE.erl')
-rw-r--r--lib/asn1/test/error_SUITE.erl15
1 files changed, 11 insertions, 4 deletions
diff --git a/lib/asn1/test/error_SUITE.erl b/lib/asn1/test/error_SUITE.erl
index eec0d1e195..e8f48b6187 100644
--- a/lib/asn1/test/error_SUITE.erl
+++ b/lib/asn1/test/error_SUITE.erl
@@ -459,12 +459,19 @@ parameterization(Config) ->
P = {M,
<<"Parameterization DEFINITIONS AUTOMATIC TAGS ::= BEGIN\n"
" NotUppercase{lowercase} ::= INTEGER (lowercase)\n"
+
+ " P{T1,T2} ::= SEQUENCE { a T1, b T2 }\n"
+ " S ::= P{OCTET STRING}\n"
+
"END\n">>},
{error,
- [{structured_error,{'Parameterization',2},asn1ct_check,
- {illegal_typereference,lowercase}}
- ]
- } = run(P, Config),
+ [{structured_error,{M,2},asn1ct_check,
+ {illegal_typereference,lowercase}},
+ {structured_error,
+ {M,4},
+ asn1ct_check,param_wrong_number_of_arguments}
+ ]
+ } = run(P, Config),
ok.
syntax(Config) ->