[rtems commit] sptests/sp16: Change allocation sizes
Sebastian Huber
sebh at rtems.org
Tue Jun 25 15:01:51 UTC 2013
Module: rtems
Branch: master
Commit: b64e8dc070f08784564810c0df78949103744b2b
Changeset: http://git.rtems.org/rtems/commit/?id=b64e8dc070f08784564810c0df78949103744b2b
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Tue Jun 25 16:57:38 2013 +0200
sptests/sp16: Change allocation sizes
This avoids problems with debugging enabled.
---
testsuites/sptests/sp16/sp16.scn | 58 +++++++++++++++++++------------------
testsuites/sptests/sp16/task1.c | 4 +-
testsuites/sptests/sp16/task2.c | 4 +-
testsuites/sptests/sp16/task3.c | 4 +-
4 files changed, 36 insertions(+), 34 deletions(-)
diff --git a/testsuites/sptests/sp16/sp16.scn b/testsuites/sptests/sp16/sp16.scn
index d8576c2..e40dde7 100644
--- a/testsuites/sptests/sp16/sp16.scn
+++ b/testsuites/sptests/sp16/sp16.scn
@@ -1,58 +1,60 @@
*** TEST 16 ***
TA1 - rtems_region_ident - rnid => 32010001
-TA1 - rtems_region_get_segment - wait on 100 byte segment from region 2
-TA1 - got segment from region 2 - 0x00000060
+TA1 - rtems_region_get_segment - wait on 1000 byte segment from region 2
+TA1 - got segment from region 2 - 0x00000040
TA1 - rtems_region_get_segment - wait on 3K segment from region 3
-TA1 - got segment from region 3 - 0x00000030
+TA1 - got segment from region 3 - 0x00000010
TA1 - rtems_region_get_segment - get 3080 byte segment from region 1 - NO_WAIT
-TA1 - got segment from region 1 - 0x00000010
+TA1 - got segment from region 1 - 0x00000070
TA1 - rtems_task_wake_after - yield processor
TA2 - rtems_region_get_segment - wait on 2K segment from region 1
-TA3 - rtems_region_get_segment - wait on 3950 byte segment from region 2
+TA3 - rtems_region_get_segment - wait on 3750 byte segment from region 2
<pause>
-TA1 - rtems_region_return_segment - return segment to region 1 - 0x00000010
+TA1 - rtems_region_return_segment - return segment to region 1 - 0x00000070
TA1 - rtems_region_get_segment - wait 10 seconds for 3K segment from region 1
-TA2 - got segment from region 1 - 0x00000010
-TA2 - rtems_region_return_segment - return segment to region 1 - 0x00000010
+TA2 - got segment from region 1 - 0x00000070
+TA2 - rtems_region_return_segment - return segment to region 1 - 0x00000070
TA2 - rtems_task_set_priority - make self highest priority task
-TA2 - rtems_region_get_segment - wait on 3950 byte segment
-TA1 - got segment from region 1 - 0x00000010
-TA1 - rtems_region_return_segment - return segment to region 2 - 0x00000060
-TA2 - got segment from region 2 - 0x00000060
-TA2 - rtems_region_return_segment - return segment to region 2 - 0x00000060
+TA2 - rtems_region_get_segment - wait on 3750 byte segment
+TA1 - got segment from region 1 - 0x00000070
+TA1 - rtems_region_return_segment - return segment to region 2 - 0x00000040
+TA2 - got segment from region 2 - 0x00000040
+TA2 - rtems_region_return_segment - return segment to region 2 - 0x00000040
TA2 - rtems_task_delete - delete self
TA1 - rtems_task_wake_after - yield processor
-TA3 - got segment from region 2 - 0x00000060
+TA3 - got segment from region 2 - 0x00000040
TA3 - rtems_region_get_segment - wait on 2K segment from region 3
TA1 - rtems_task_delete - delete TA3
<pause>
TA1 - rtems_task_wake_after - yield processor
TA4 - rtems_region_get_segment - wait on 1.5K segment from region 1
TA5 - rtems_region_get_segment - wait on 1.5K segment from region 1
-TA1 - rtems_region_return_segment - return segment to region 1 - 0x00000010
+TA1 - rtems_region_return_segment - return segment to region 1 - 0x00000070
TA1 - rtems_task_wake_after - yield processor
-TA4 - got and returned 0x00000010
-TA5 - got and returned 0x00000690
+TA4 - got and returned 0x00000070
+TA5 - got and returned 0x000006f0
TA1 - rtems_region_get_segment - wait 10 seconds for 3K segment from region 1
-TA1 - got segment from region 1 - 0x00000010
+TA1 - got segment from region 1 - 0x00000070
TA1 - rtems_task_wake_after - yield processor
-TA5 - rtems_region_get_segment - wait on 3K segment from region 1
TA4 - rtems_region_get_segment - wait on 3K segment from region 1
+TA5 - rtems_region_get_segment - wait on 3K segment from region 1
TA1 - rtems_task_delete - delete TA4
-TA1 - rtems_region_return_segment - return segment to region 1 - 0x00000010
+TA1 - rtems_region_return_segment - return segment to region 1 - 0x00000070
TA1 - rtems_task_wake_after - yield processor
-TA5 - got segment from region 1 - 0x00000010
-TA5 - rtems_region_return_segment - return segment to region 1 - 0x00000010
+TA5 - got segment from region 1 - 0x00000070
+TA5 - rtems_region_return_segment - return segment to region 1 - 0x00000070
TA5 - rtems_task_delete - delete self
TA1 - rtems_region_delete - delete region 1
TA1 - rtems_region_get_segment - get 3K segment from region 4
-TA1 - got segment from region 4 - 0x00000060
+TA1 - got segment from region 4 - 0x00000040
TA1 - rtems_region_get_segment - attempt to get 3K segment from region 4
-TA1 - rtems_task_get_segment - RTEMS_UNSATISFIED
-TA1 - rtems_region_extend - extend region 4 by 4K
+TA1 - rtems_region_get_segment - RTEMS_UNSATISFIED
+TA1 - rtems_region_extend - extend region 4 by 1
+TA1 - rtems_region_extend - RTEMS_INVALID_ADDRESS
+TA1 - rtems_region_extend - extend region 4 by 4K - 1
TA1 - rtems_region_get_segment - attempt to get 3K segment from region 4
-TA1 - got 3K segment from region 4 - 0x00000ce0
-TA1 - rtems_region_return_segment - return segment to region 4 - 0x00000060
-TA1 - rtems_region_return_segment - return segment to region 4 - 0x00000ce0
+TA1 - got 3K segment from region 4 - 0x00001040
+TA1 - rtems_region_return_segment - return segment to region 4 - 0x00000040
+TA1 - rtems_region_return_segment - return segment to region 4 - 0x00001040
TA1 - rtems_region_delete - delete region 4
*** END OF TEST 16 ***
diff --git a/testsuites/sptests/sp16/task1.c b/testsuites/sptests/sp16/task1.c
index 83489d3..d53857c 100644
--- a/testsuites/sptests/sp16/task1.c
+++ b/testsuites/sptests/sp16/task1.c
@@ -37,11 +37,11 @@ rtems_task Task_1(
directive_failed( status, "rtems_region_ident of RN1" );
puts(
- "TA1 - rtems_region_get_segment - wait on 100 byte segment from region 2"
+ "TA1 - rtems_region_get_segment - wait on 1000 byte segment from region 2"
);
status = rtems_region_get_segment(
Region_id[ 2 ],
- 100,
+ 1000,
RTEMS_DEFAULT_OPTIONS,
RTEMS_NO_TIMEOUT,
&segment_address_1
diff --git a/testsuites/sptests/sp16/task2.c b/testsuites/sptests/sp16/task2.c
index 1126bd6..42b1e53 100644
--- a/testsuites/sptests/sp16/task2.c
+++ b/testsuites/sptests/sp16/task2.c
@@ -60,10 +60,10 @@ rtems_task Task_2(
);
directive_failed( status, "rtems_task_set_priority" );
- puts("TA2 - rtems_region_get_segment - wait on 3950 byte segment");
+ puts("TA2 - rtems_region_get_segment - wait on 3750 byte segment");
status = rtems_region_get_segment(
Region_id[ 2 ],
- 3950,
+ 3750,
RTEMS_DEFAULT_OPTIONS,
RTEMS_NO_TIMEOUT,
&segment_address_2
diff --git a/testsuites/sptests/sp16/task3.c b/testsuites/sptests/sp16/task3.c
index 0da68a2..4bce409 100644
--- a/testsuites/sptests/sp16/task3.c
+++ b/testsuites/sptests/sp16/task3.c
@@ -31,11 +31,11 @@ rtems_task Task_3(
void *segment_address_2;
puts(
- "TA3 - rtems_region_get_segment - wait on 3950 byte segment from region 2"
+ "TA3 - rtems_region_get_segment - wait on 3750 byte segment from region 2"
);
status = rtems_region_get_segment(
Region_id[ 2 ],
- 3950,
+ 3750,
RTEMS_DEFAULT_OPTIONS,
RTEMS_NO_TIMEOUT,
&segment_address_1
More information about the vc
mailing list