summaryrefslogtreecommitdiffstats
path: root/testsuites/libtests/stackchk02/stackchk02.scn
diff options
context:
space:
mode:
authorKinsey Moore <kinsey.moore@oarcorp.com>2022-01-26 16:00:04 -0600
committerJoel Sherrill <joel@rtems.org>2022-01-27 13:07:30 -0600
commitb539af865ea3217a50c8e4cbf0f668807c134356 (patch)
tree52af413092bfe40c3fde77d8935219245f151169 /testsuites/libtests/stackchk02/stackchk02.scn
parentRemove obsolete rtems_gxx_*() implementation (diff)
downloadrtems-b539af865ea3217a50c8e4cbf0f668807c134356.tar.bz2
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
Diffstat (limited to 'testsuites/libtests/stackchk02/stackchk02.scn')
-rw-r--r--testsuites/libtests/stackchk02/stackchk02.scn7
1 files changed, 7 insertions, 0 deletions
diff --git a/testsuites/libtests/stackchk02/stackchk02.scn b/testsuites/libtests/stackchk02/stackchk02.scn
new file mode 100644
index 0000000000..bb2b782490
--- /dev/null
+++ b/testsuites/libtests/stackchk02/stackchk02.scn
@@ -0,0 +1,7 @@
+*** TEST STACKCHK02 ***
+ STACK USAGE BY THREAD
+ID NAME LOW HIGH CURRENT AVAIL USED
+0x09010001 IDLE 0x10104940 0x1010713f 0x10107140 10224 N/A
+0x0a010001 UI1 0x10109950 0x1010c14f 0x1010c150 10224 N/A
+
+*** END OF TEST STACKCHK02 ***