diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-09-09 14:59:09 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-09-09 14:59:09 +0000 |
commit | 809fb589fc3f4de6409aeebc8b967e9e0e3b5b7d (patch) | |
tree | 2d0e8db5e1f734dccd8206021aa83cff6c70e3e4 /testsuites/libtests/stackchk | |
parent | 2009-09-09 Sebastian Huber <Sebastian.Huber@embedded-brains.de> (diff) | |
download | rtems-809fb589fc3f4de6409aeebc8b967e9e0e3b5b7d.tar.bz2 |
2009-09-09 Christian Mauderer <christian.mauderer@embedded-brains.de>
* heapwalk/init.c, heapwalk/heapwalk.scn, malloctest/init.c,
malloctest/malloctest.scn: New test cases.
* stackchk/blow.c, stackchk/stackchk.scn: Update for heap API changes.
Diffstat (limited to 'testsuites/libtests/stackchk')
-rw-r--r-- | testsuites/libtests/stackchk/blow.c | 3 | ||||
-rw-r--r-- | testsuites/libtests/stackchk/stackchk.scn | 25 |
2 files changed, 16 insertions, 12 deletions
diff --git a/testsuites/libtests/stackchk/blow.c b/testsuites/libtests/stackchk/blow.c index 07b7585a66..445e2927b5 100644 --- a/testsuites/libtests/stackchk/blow.c +++ b/testsuites/libtests/stackchk/blow.c @@ -30,7 +30,8 @@ b(); area = (unsigned char *)_Thread_Executing->Start.Initial_stack.area; - low = (volatile uint32_t *) (area + HEAP_BLOCK_HEADER_SIZE); + /* Look in the stack checker implementation for this magic offset */ + low = (volatile uint32_t *) (area + sizeof(Heap_Block) - HEAP_BLOCK_HEADER_SIZE); high = (volatile uint32_t *) (area + _Thread_Executing->Start.Initial_stack.size - 16); diff --git a/testsuites/libtests/stackchk/stackchk.scn b/testsuites/libtests/stackchk/stackchk.scn index 6b2f7721f9..df47a61dbb 100644 --- a/testsuites/libtests/stackchk/stackchk.scn +++ b/testsuites/libtests/stackchk/stackchk.scn @@ -1,12 +1,15 @@ *** TEST STACK CHECKER *** -TA1 - rtems_clock_get - 09:00:00 12/31/1988 -TA2 - rtems_clock_get - 09:00:00 12/31/1988 -TA3 - rtems_clock_get - 09:00:00 12/31/1988 -TA1 - rtems_clock_get - 09:00:05 12/31/1988 -TA1 - rtems_clock_get - 09:00:10 12/31/1988 -TA2 - rtems_clock_get - 09:00:10 12/31/1988 -TA1 - rtems_clock_get - 09:00:15 12/31/1988 ----> error indication similar to: -BLOWN STACK!!! Offending task(0x23EE7A0): id=0x0A010002; name=0x54413120 - stack covers range 0x23F1BD0 - 0x23F4BDF (12304 bytes) - Damaged pattern begins at 0x023F1BD8 and is 16 bytes long +TA1 - rtems_clock_get_tod - 09:00:00 12/31/1988 +TA2 - rtems_clock_get_tod - 09:00:00 12/31/1988 +TA3 - rtems_clock_get_tod - 09:00:00 12/31/1988 +TA1 - rtems_clock_get_tod - 09:00:05 12/31/1988 +TA1 - rtems_clock_get_tod - 09:00:10 12/31/1988 +TA2 - rtems_clock_get_tod - 09:00:10 12/31/1988 +TA1 - rtems_clock_get_tod - 09:00:15 12/31/1988 +BLOWN STACK!!! +task control block: 0x???????? +task ID: 0x0A010002 +task name: 0x???????? +task name string: TA1 +task stack area (????? Bytes): 0x???????? .. 0x???????? +damaged pattern area (16 Bytes): 0x???????? .. 0x???????? |