ns: always clean up the ns_codec

The f_clean_ns_codec() was introduced later to clean up the ns_codec
properly.

Change-Id: I7a84f75ebd1c68b3c0a6b55b8c49903c51dd6b92
This commit is contained in:
Alexander Couzens 2021-09-06 00:39:07 +02:00 committed by lynxis lazus
parent 94d3d10777
commit 3674405a1b
1 changed files with 19 additions and 0 deletions

View File

@ -131,6 +131,7 @@ testcase TC_tx_reset() runs on RAW_Test_CT {
setverdict(pass);
f_sleep(1.0);
f_clean_ns_codec();
}
testcase TC_tx_reset_tx_alive() runs on RAW_Test_CT {
@ -145,6 +146,7 @@ testcase TC_tx_reset_tx_alive() runs on RAW_Test_CT {
setverdict(pass);
f_sleep(1.0);
f_clean_ns_codec();
}
testcase TC_tx_reset_rx_alive() runs on RAW_Test_CT {
@ -160,6 +162,7 @@ testcase TC_tx_reset_rx_alive() runs on RAW_Test_CT {
setverdict(pass);
f_sleep(1.0);
f_clean_ns_codec();
}
/* 48.016 7.2.1 transmit a UNIT DATA over a BLOCKED NSVC when ttcn3 blocked it
@ -227,6 +230,7 @@ testcase TC_tx_unblock() runs on RAW_Test_CT {
f_outgoing_ns_unblock();
setverdict(pass);
f_sleep(1.0);
f_clean_ns_codec();
}
/* 48.016 7.2 tx unblock retries
@ -254,6 +258,7 @@ testcase TC_tx_unblock_retries() runs on RAW_Test_CT {
f_outgoing_ns_unblock();
setverdict(pass);
f_sleep(1.0);
f_clean_ns_codec();
}
/* 48.016 7.2 block procedure
@ -318,6 +323,7 @@ function tx_block_by_vty(float guard_secs := 30.0) runs on RAW_Test_CT {
testcase TC_tx_block_by_vty() runs on RAW_Test_CT {
tx_block_by_vty(30.0);
f_sleep(1.0);
f_clean_ns_codec();
}
/* 48.016 7.2 block precedure by vty and reset the NSVC.
@ -336,6 +342,7 @@ testcase TC_tx_block_by_vty_reset() runs on RAW_Test_CT {
[] T.timeout { setverdict(pass); }
}
deactivate(d);
f_clean_ns_codec();
}
/* 48.016 7.4.1 ignore unexpected NS_ALIVE ACK */
@ -347,6 +354,7 @@ testcase TC_no_reset_alive_ack() runs on RAW_Test_CT {
f_fails_except_reset();
setverdict(pass);
f_sleep(1.0);
f_clean_ns_codec();
}
/* 48.016 7.3.1 NS_RESET with wrong nsei */
@ -359,6 +367,7 @@ testcase TC_reset_wrong_nsei() runs on RAW_Test_CT {
f_fails_except_reset();
setverdict(pass);
f_sleep(1.0);
f_clean_ns_codec();
}
/* 48.016 7.3.1 NS_RESET with wrong nsvci */
@ -371,6 +380,7 @@ testcase TC_reset_wrong_nsvci() runs on RAW_Test_CT {
f_fails_except_reset();
setverdict(pass);
f_sleep(1.0);
f_clean_ns_codec();
}
/* 48.016 7.3.1 NS_RESET with wrong nsvci + nsei */
@ -383,6 +393,7 @@ testcase TC_reset_wrong_nsei_nsvci() runs on RAW_Test_CT {
f_fails_except_reset();
setverdict(pass);
f_sleep(1.0);
f_clean_ns_codec();
}
/* 48.016 7.3.1 NS_RESET_ACK with wrong nsei */
@ -395,6 +406,7 @@ testcase TC_reset_ack_wrong_nsei() runs on RAW_Test_CT {
f_fails_except_reset();
setverdict(pass);
f_sleep(1.0);
f_clean_ns_codec();
}
/* 48.016 7.3.1 NS_RESET_ACK with wrong nsvci */
@ -407,6 +419,7 @@ testcase TC_reset_ack_wrong_nsvci() runs on RAW_Test_CT {
f_fails_except_reset();
setverdict(pass);
f_sleep(1.0);
f_clean_ns_codec();
}
/* 48.016 7.3.1 NS_RESET_ACK with wrong nsvci + nsei */
@ -419,6 +432,7 @@ testcase TC_reset_ack_wrong_nsei_nsvci() runs on RAW_Test_CT {
f_fails_except_reset();
setverdict(pass);
f_sleep(1.0);
f_clean_ns_codec();
}
/* 48.016 7.3.1 ignore unexpected NS_RESET_ACK after NS_RESET+ALIVE */
@ -439,6 +453,7 @@ testcase TC_ignore_reset_ack() runs on RAW_Test_CT {
f_ensure_no_ns(answer_alive := true, tout := 15.0);
setverdict(pass);
f_sleep(1.0);
f_clean_ns_codec();
}
/* 48.016 7.3 NS_RESET retries */
@ -460,6 +475,7 @@ testcase TC_reset_retries() runs on RAW_Test_CT {
}
f_sleep(1.0);
f_clean_ns_codec();
}
/* 48.016 behave RESET_ACK got dropped
@ -493,6 +509,7 @@ testcase TC_reset_on_block_reset() runs on RAW_Test_CT {
}
f_sleep(1.0);
f_clean_ns_codec();
}
/* 48.016 7.4 test procedure for frame relay with a single nsvci */
@ -526,10 +543,12 @@ function f_alive_retries_single(boolean reset := false) runs on RAW_Test_CT {
testcase TC_alive_retries_single_reset() runs on RAW_Test_CT {
f_alive_retries_single(reset := true);
f_clean_ns_codec();
}
testcase TC_alive_retries_single_no_resp() runs on RAW_Test_CT {
f_alive_retries_single(reset := false);
f_clean_ns_codec();
}
/* 48.016 SNS test cases */