aboutsummaryrefslogtreecommitdiffstats
path: root/lib/asn1/test/asn1_SUITE_data/extensionAdditionGroup.erl
diff options
context:
space:
mode:
authorErlang/OTP <[email protected]>2013-02-06 14:47:12 +0100
committerErlang/OTP <[email protected]>2013-02-06 14:47:12 +0100
commitb4b0029f031818a9dce605b73551bca2ed3a01f4 (patch)
treec393957b3016f2db90e8b5ba257368c2dc3e79d6 /lib/asn1/test/asn1_SUITE_data/extensionAdditionGroup.erl
parentc666e18f0fcc20cf8eaeba423824883aa01e2f78 (diff)
parent9a0754b4d051eb75547da790fadef962b67a512e (diff)
downloadotp-b4b0029f031818a9dce605b73551bca2ed3a01f4.tar.gz
otp-b4b0029f031818a9dce605b73551bca2ed3a01f4.tar.bz2
otp-b4b0029f031818a9dce605b73551bca2ed3a01f4.zip
Merge branch 'bjorn/asn1/extension-addition-groups/OTP-10811' into maint-r15
* bjorn/asn1/extension-addition-groups/OTP-10811: Fix a bug for multiple extension addition groups
Diffstat (limited to 'lib/asn1/test/asn1_SUITE_data/extensionAdditionGroup.erl')
-rw-r--r--lib/asn1/test/asn1_SUITE_data/extensionAdditionGroup.erl23
1 files changed, 23 insertions, 0 deletions
diff --git a/lib/asn1/test/asn1_SUITE_data/extensionAdditionGroup.erl b/lib/asn1/test/asn1_SUITE_data/extensionAdditionGroup.erl
index 5fcec23756..8148381d92 100644
--- a/lib/asn1/test/asn1_SUITE_data/extensionAdditionGroup.erl
+++ b/lib/asn1/test/asn1_SUITE_data/extensionAdditionGroup.erl
@@ -130,3 +130,26 @@ run3(Erule) ->
_ -> exit({expected,Val, got, Val2})
end.
+run3() ->
+ SI = #'SystemInformationBlockType2'{
+ timeAlignmentTimerCommon = sf500,
+ lateNonCriticalExtension = asn1_NOVALUE,
+ 'ssac-BarringForMMTEL-Voice-r9' = asn1_NOVALUE,
+ 'ssac-BarringForMMTEL-Video-r9' = asn1_NOVALUE,
+ 'ac-BarringForCSFB-r10' = asn1_NOVALUE},
+ Barring = #'AC-BarringConfig'{
+ 'ac-BarringFactor' = p00,
+ 'ac-BarringTime' = s4,
+ 'ac-BarringForSpecialAC' = [0,0,0,0,0]},
+ roundtrip(SI),
+ roundtrip(SI#'SystemInformationBlockType2'{
+ 'ssac-BarringForMMTEL-Voice-r9'=Barring}),
+ roundtrip(SI#'SystemInformationBlockType2'{
+ 'ssac-BarringForMMTEL-Video-r9'=Barring}),
+ roundtrip(SI#'SystemInformationBlockType2'{
+ 'ac-BarringForCSFB-r10'=Barring}).
+
+roundtrip(V) ->
+ Mod = 'Extension-Addition-Group',
+ {ok,E} = Mod:encode('SystemInformationBlockType2', V),
+ {ok,V} = Mod:decode('SystemInformationBlockType2', iolist_to_binary(E)).