summaryrefslogtreecommitdiff
path: root/cesar/mac/sar/test
diff options
context:
space:
mode:
authorlaranjeiro2009-09-18 16:01:27 +0000
committerlaranjeiro2009-09-18 16:01:27 +0000
commit4ef74729838512675f8e3523cdd54d7c4e84fb74 (patch)
tree5266584080b79a05deb9e7774939f0615d9f0798 /cesar/mac/sar/test
parentc7971e75dab7034a15e757d4d19a0402e25d239c (diff)
*mac/sar:
* Fix functional tests. git-svn-id: svn+ssh://pessac/svn/cesar/trunk@5612 017c9cb6-072f-447c-8318-d5b54f68fe89
Diffstat (limited to 'cesar/mac/sar/test')
-rw-r--r--cesar/mac/sar/test/functional/Makefile2
-rw-r--r--cesar/mac/sar/test/functional/src/sar_rx.c3
-rw-r--r--cesar/mac/sar/test/functional/src/sar_tx.c1
3 files changed, 5 insertions, 1 deletions
diff --git a/cesar/mac/sar/test/functional/Makefile b/cesar/mac/sar/test/functional/Makefile
index ae11fd2af6..127ceb385c 100644
--- a/cesar/mac/sar/test/functional/Makefile
+++ b/cesar/mac/sar/test/functional/Makefile
@@ -1,6 +1,6 @@
all: sparc host
-sparc: sparc-Makefile sparc-Config
+sparc: sparc-Makefile
make -f sparc-Makefile
host: host-Makefile host-Config
diff --git a/cesar/mac/sar/test/functional/src/sar_rx.c b/cesar/mac/sar/test/functional/src/sar_rx.c
index 5d12aeed49..d8101e05c0 100644
--- a/cesar/mac/sar/test/functional/src/sar_rx.c
+++ b/cesar/mac/sar/test/functional/src/sar_rx.c
@@ -24,6 +24,7 @@
#include "lib/crc.h"
#include "lib/bitstream.h"
#include "lib/read_word.h"
+#include "lib/trace.h"
#include "mac/common/ntb.h"
#include "mac/sar/sar.h"
@@ -230,6 +231,7 @@ test_thread_process (cyg_addrword_t data)
u8 *buffer;
uint i;
+ trace_init ();
test_init (test, 0, NULL);
/* Initialise the test. */
@@ -280,6 +282,7 @@ test_thread_process (cyg_addrword_t data)
dbg_check (mac_store_sta_remove (mac_store, 0x1));
mac_store_uninit (mac_store);
mac_ntb_uninit();
+ trace_uninit();
#ifndef __sparc__
HAL_PLATFORM_EXIT (test_nb_failed (test) == 0 ? 0 : 1);
diff --git a/cesar/mac/sar/test/functional/src/sar_tx.c b/cesar/mac/sar/test/functional/src/sar_tx.c
index 816083f5ea..af3103fc71 100644
--- a/cesar/mac/sar/test/functional/src/sar_tx.c
+++ b/cesar/mac/sar/test/functional/src/sar_tx.c
@@ -158,6 +158,7 @@ verify_test (test_t test)
sar_mfs_remove (sar_ctx, (mfs_t *) mfs);
blk_release_desc_range_nb ((blk_t *) pb_first, 6);
+ mac_store_mfs_remove (mac_store, (mfs_t *) mfs);
}
test_end;