summaryrefslogtreecommitdiff
path: root/mac/sar/test/maximus_test/src/Maximus_sar.cpp
diff options
context:
space:
mode:
authorlaranjeiro2007-09-25 12:18:18 +0000
committerlaranjeiro2007-09-25 12:18:18 +0000
commitd108f300e0bf7d4d2bd4454534d27b43170d8a13 (patch)
treede95df13b3d104f3cdfb156a0dcfd29c6615d5f7 /mac/sar/test/maximus_test/src/Maximus_sar.cpp
parent0f23f143d65c4018848ce7c53c9f297e04b6bcfd (diff)
Sar on maximus working with three MF.
git-svn-id: svn+ssh://pessac/svn/cesar/trunk@739 017c9cb6-072f-447c-8318-d5b54f68fe89
Diffstat (limited to 'mac/sar/test/maximus_test/src/Maximus_sar.cpp')
-rw-r--r--mac/sar/test/maximus_test/src/Maximus_sar.cpp31
1 files changed, 20 insertions, 11 deletions
diff --git a/mac/sar/test/maximus_test/src/Maximus_sar.cpp b/mac/sar/test/maximus_test/src/Maximus_sar.cpp
index 1fec740584..f015122dba 100644
--- a/mac/sar/test/maximus_test/src/Maximus_sar.cpp
+++ b/mac/sar/test/maximus_test/src/Maximus_sar.cpp
@@ -126,7 +126,8 @@ int main (int argc, char *argv[])
sar_max_job = (sar_max_job_t *) malloc (sizeof (sar_max_job_t));
sar_max_job->next = (sar_max_job_t *) malloc (sizeof (sar_max_job_t));
- sar_max_job->next->next = NULL;
+ sar_max_job->next->next = (sar_max_job_t *) malloc (sizeof (sar_max_job_t));
+ sar_max_job->next->next->next = NULL;
/* Init job 1 */
sar_max_job->lid = 1;
@@ -142,9 +143,17 @@ int main (int argc, char *argv[])
sar_max_job->next->tei_dest = 2;
sar_max_job->next->bcast = false;
sar_max_job->next->mf_type = 2;
- sar_max_job->packet_id = 2;
-
- max_jobs_qte = 2;
+ sar_max_job->next->packet_id = 1;
+
+ /* Init job 3 */
+ sar_max_job->next->next->lid = 1;
+ sar_max_job->next->next->tei_src = 1;
+ sar_max_job->next->next->tei_dest = 2;
+ sar_max_job->next->next->bcast = false;
+ sar_max_job->next->next->mf_type = 2;
+ sar_max_job->next->next->packet_id = 2;
+
+ max_jobs_qte = 3;
return launch_x_segs (argc, argv, sar_max_job);
}
@@ -172,7 +181,7 @@ int main (int argc, char *argv[])
*/
int launch_x_segs (int argc, char *argv[], sar_max_job_t *sar_max_job)
{
- bool logs;
+// bool logs;
int i;
test_fail = false;
@@ -182,14 +191,14 @@ int launch_x_segs (int argc, char *argv[], sar_max_job_t *sar_max_job)
Sta station1 = maximus.create_sta ();
//station1.debug ();
Sta station2 = maximus.create_sta ();
- station2.debug ();
+// station2.debug ();
// activate the sta 1 logs
- Msg fc = maximus.create_fc ("activate_logs");
- logs = true;
- fc.add_param ("debug", sizeof(unsigned char), (unsigned char *) &logs);
- //fc.send (station1);
- fc.send (station2);
+// Msg fc = maximus.create_fc ("activate_logs");
+// logs = true;
+// fc.add_param ("debug", sizeof(unsigned char), (unsigned char *) &logs);
+// //fc.send (station1);
+// fc.send (station2);
segmentation (&maximus, &station1, station1_cb, sar_max_job);