From 2c59448f7e3726c241719b5952c1685cf6a6313a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Gustavsson?= Date: Thu, 5 Sep 2013 06:31:20 +0200 Subject: asn_SUITE: Fold per_GeneralString/1 into h323test The per_GeneralString/1 test case compiles MULTIMEDIA-SYSTEM-CONTROL and then does a single decoding. Save some compilation time by folding the test into the h323test/1 test case. --- lib/asn1/test/h323test.erl | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/asn1/test/h323test.erl') diff --git a/lib/asn1/test/h323test.erl b/lib/asn1/test/h323test.erl index 426ae16994..dfc1173d68 100644 --- a/lib/asn1/test/h323test.erl +++ b/lib/asn1/test/h323test.erl @@ -28,6 +28,7 @@ run(_Rules) -> ok. run() -> alerting(), connect(), + general_string(), ok. dec_alerting() -> @@ -59,6 +60,11 @@ connect() -> ByteList = lists:flatten(B), {ok,V} = asn1_wrapper:decode('H323-MESSAGES','H323-UserInformation',ByteList). +general_string() -> + Type = 'MultimediaSystemControlMessage', + UI = <<109,64,1,57>>, + {ok, _V} = 'MULTIMEDIA-SYSTEM-CONTROL':decode(Type, UI). + hexstr2bytes([D1,D2|T]) -> [dig2num(D1)*16+dig2num(D2)|hexstr2bytes(T)]; hexstr2bytes([]) -> -- cgit v1.2.3