summaryrefslogtreecommitdiff
path: root/cesar/mac/sar/test/functional
diff options
context:
space:
mode:
authorlaranjeiro2009-05-22 07:37:21 +0000
committerlaranjeiro2009-05-22 07:37:21 +0000
commitfcdd6c70615a0fb7f806ee3073e2430f08fdec26 (patch)
treed0e1e72a2379de09ab6ec332fe8ed162309bd70e /cesar/mac/sar/test/functional
parent980a44818ccb674b89f4cfedd0c6dd1d6592f4ce (diff)
* mac/sar:
* Removed useless define for sparc when calling the arch_load_cache function. * Added a new test fail in the sar_tx functional test when the number of PBs in the MFS does not correspond to the number of segments available. git-svn-id: svn+ssh://pessac/svn/cesar/trunk@4682 017c9cb6-072f-447c-8318-d5b54f68fe89
Diffstat (limited to 'cesar/mac/sar/test/functional')
-rw-r--r--cesar/mac/sar/test/functional/src/sar_tx.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/cesar/mac/sar/test/functional/src/sar_tx.c b/cesar/mac/sar/test/functional/src/sar_tx.c
index 934e12e13a..24790d8e51 100644
--- a/cesar/mac/sar/test/functional/src/sar_tx.c
+++ b/cesar/mac/sar/test/functional/src/sar_tx.c
@@ -107,6 +107,7 @@ verify_test (test_t test)
test_fail_unless (mfs->head != NULL);
test_fail_unless (mfs->tail!= NULL);
test_fail_unless (mfs->head != mfs->tail);
+ test_fail_unless (mfs->tail->header.ssn + 1 == mfs->seg_nb);
test_fail_unless (mfs->seg_nb == 6);
pb_first = mfs->head;
@@ -120,10 +121,8 @@ verify_test (test_t test)
i++, pb_current = pb_current->next)
{
pb_list[i] = pb_current;
-#ifdef __sparc__
arch_load_cache ((u32*) &(pb_current->header), 1);
arch_load_cache ((u32*) (pb_current->data), BLK_SIZE / 4);
-#endif
test_fail_unless (pb_current->header.ssn == i);
}