summaryrefslogtreecommitdiff
path: root/mac/sar/test/unit_test/ecos
diff options
context:
space:
mode:
authorlaranjeiro2007-12-05 15:18:00 +0000
committerlaranjeiro2007-12-05 15:18:00 +0000
commit5aabda483b46f3c8bc6cdb18ec97e41fb2713b22 (patch)
tree6d07f1aeae51c57f1833bf8dcfca887e39bacca1 /mac/sar/test/unit_test/ecos
parent799fe9dff3c81eae7792457f6884db7a372aef20 (diff)
* Modified the job desc create to had the real length of the MF i.e. MF of type 1 did not have the ICV length added.
* Remove unused data from the SAR context. i.e. bridge status and pb pool. * Modified the Expiration MAX timers (seg and rea) to allows the PBs to stay until 1 second in the SAR. on Maximus the PBs are send in ROBO and take 5 ms to be sent. * Modified the bridge_dma_free_head and mac_framing function to count correctly the PBs which can be provide to the Channel Access. * Update the unit test of the SAR. git-svn-id: svn+ssh://pessac/svn/cesar/trunk@1098 017c9cb6-072f-447c-8318-d5b54f68fe89
Diffstat (limited to 'mac/sar/test/unit_test/ecos')
-rw-r--r--mac/sar/test/unit_test/ecos/src/lib_sar_expiration.c6
-rw-r--r--mac/sar/test/unit_test/ecos/src/sar_manage_expiration.c6
2 files changed, 6 insertions, 6 deletions
diff --git a/mac/sar/test/unit_test/ecos/src/lib_sar_expiration.c b/mac/sar/test/unit_test/ecos/src/lib_sar_expiration.c
index 8674dc6c18..350ad8d7be 100644
--- a/mac/sar/test/unit_test/ecos/src/lib_sar_expiration.c
+++ b/mac/sar/test/unit_test/ecos/src/lib_sar_expiration.c
@@ -214,7 +214,7 @@ void expire_pbs_first (sar_expiration_t exp, test_t test)
sar_expiration_mfs_add (&exp, (mfs_t *) mfs_tx);
- sar_expiration_mfs (&exp, 500);
+ sar_expiration_mfs (&exp, 5000000);
test_begin (test, "no pb in MFS")
{
@@ -275,7 +275,7 @@ void expire_pbs_first (sar_expiration_t exp, test_t test)
mfs_rx->head->next->next->expiration_ntb = 200;
sar_expiration_mfs_add (&exp, (mfs_t *) mfs_rx);
- sar_expiration_mfs (&exp, 100);
+ sar_expiration_mfs (&exp, 1000);
sar_expiration_mfs_destroy (&exp, (mfs_t *) mfs_rx);
@@ -394,7 +394,7 @@ void expire_mfs (sar_expiration_t exp, test_t test)
* not empty */
u32 date;
- for (date = 0; !heap_empty (&exp.mfs_expiration_heap) && date < 600; date
+ for (date = 0; !heap_empty (&exp.mfs_expiration_heap) && date < 600000; date
+= 5)
{
sar_expiration_mfs (&exp, date);
diff --git a/mac/sar/test/unit_test/ecos/src/sar_manage_expiration.c b/mac/sar/test/unit_test/ecos/src/sar_manage_expiration.c
index 287c60dea7..0d62a2317f 100644
--- a/mac/sar/test/unit_test/ecos/src/sar_manage_expiration.c
+++ b/mac/sar/test/unit_test/ecos/src/sar_manage_expiration.c
@@ -279,7 +279,7 @@ void mfs_tx_in_release_state_go_to_destroy (void)
mfs_t *mfs;
// Launch the sar expiration process.
- sar_expiration_mfs (&sar_ctx->expiration, 500);
+ sar_expiration_mfs (&sar_ctx->expiration, 500000);
mfs = mac_store_mfs_get (mac_store, true, false, false, 0x1, 0x1);
@@ -355,7 +355,7 @@ void mfs_tx_glid_to_destroy (void)
mfs_t *mfs;
// Launch the sar expiration process.
- sar_expiration_mfs (&sar_ctx->expiration, 500);
+ sar_expiration_mfs (&sar_ctx->expiration, 500000);
mfs = mac_store_mfs_get (mac_store, true, false, false, 0xA, 0x1);
@@ -424,7 +424,7 @@ void mfs_tx_remove_request_go_to_destroy (void)
mfs_t *mfs;
// Launch the sar expiration process.
- sar_expiration_mfs (&sar_ctx->expiration, 500);
+ sar_expiration_mfs (&sar_ctx->expiration, 500000);
mfs = mac_store_mfs_get (mac_store, true, false, false, 0x1, 0x1);