diff options
author | Alexander Couzens <lynxis@fe80.eu> | 2019-05-11 01:50:10 +0200 |
---|---|---|
committer | laforge <laforge@gnumonks.org> | 2019-06-11 14:53:46 +0000 |
commit | 4630e74bb82a59511673395bc079c3bbb7a999e4 (patch) | |
tree | fc14c17322acb76f9f942eeb0339dac9d6bacbda | |
parent | 49a8746ca529a80ce9a7ef874e6910d6f791a9e1 (diff) |
SGSN_Tests: f_detach_mo(): fail when receiving any unhandled layer 3 message for normal detach
Merge the case with the fail when doing a power-off detach.
Change-Id: I957994376583959758417dccf419a55c43a0c61b
-rw-r--r-- | sgsn/SGSN_Tests.ttcn | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/sgsn/SGSN_Tests.ttcn b/sgsn/SGSN_Tests.ttcn index 1f63dfae..03c9d05b 100644 --- a/sgsn/SGSN_Tests.ttcn +++ b/sgsn/SGSN_Tests.ttcn @@ -924,10 +924,6 @@ function f_detach_mo(BIT3 detach_type, boolean power_off, boolean expect_purge, mtc.stop; /* TODO: check if any PDP contexts are deactivated on network side? */ } - [power_off] BSSGP[bssgp_index].receive(tr_BD_L3_MT(?)) -> value bd { - setverdict(fail, "Unexpected Layer 3 package received in power-off DETACH"); - mtc.stop; - } [power_off] T.timeout { setverdict(pass); } @@ -936,6 +932,14 @@ function f_detach_mo(BIT3 detach_type, boolean power_off, boolean expect_purge, setverdict(pass); /* TODO: check if any PDP contexts are deactivated on network side? */ } + [] BSSGP[bssgp_index].receive(tr_BD_L3_MT(?)) -> value bd { + if (power_off) { + setverdict(fail, "Unexpected Layer 3 package received in power-off DETACH"); + } else { + setverdict(fail, "Unexpected Layer 3 package received in normal DETACH"); + } + mtc.stop; + } [] BSSGP[bssgp_index].receive { repeat; } } } |