source: rtems/testsuites/libtests/stackchk02/stackchk02.scn @ b539af8

Last change on this file since b539af8 was b539af8, checked in by Kinsey Moore <kinsey.moore@…>, on 01/26/22 at 22:00:04

cpukit: Prevent error with disabled stack checker

When the stack checker is not enabled, the stack checker reporting
function can still be called. This prevents that call from performing a
null memory access in trying to find the high water mark if the stack
checker was never initialized.

This also introduces a test to ensure this call does not cause a crash.

Closes #4588

  • Property mode set to 100644
File size: 341 bytes
RevLine 
[b539af8]1*** TEST STACKCHK02 ***
2                             STACK USAGE BY THREAD
3ID         NAME                  LOW        HIGH       CURRENT     AVAIL   USED
40x09010001 IDLE                  0x10104940 0x1010713f 0x10107140  10224 N/A
50x0a010001 UI1                   0x10109950 0x1010c14f 0x1010c150  10224 N/A
6
7*** END OF TEST STACKCHK02 ***
Note: See TracBrowser for help on using the repository browser.