summaryrefslogtreecommitdiffstats
path: root/spec/score/thread/val/fatal-idle-thread-create-failed.yml
diff options
context:
space:
mode:
Diffstat (limited to 'spec/score/thread/val/fatal-idle-thread-create-failed.yml')
-rw-r--r--spec/score/thread/val/fatal-idle-thread-create-failed.yml64
1 files changed, 64 insertions, 0 deletions
diff --git a/spec/score/thread/val/fatal-idle-thread-create-failed.yml b/spec/score/thread/val/fatal-idle-thread-create-failed.yml
new file mode 100644
index 00000000..a2bc547f
--- /dev/null
+++ b/spec/score/thread/val/fatal-idle-thread-create-failed.yml
@@ -0,0 +1,64 @@
+SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
+copyrights:
+- Copyright (C) 2022 embedded brains GmbH (http://www.embedded-brains.de)
+enabled-by: true
+links: []
+test-actions:
+- action-brief: |
+ The test action is carried out by configuring a task create extension which
+ always fails.
+ action-code: |
+ /* Nothing to do */
+ checks:
+ - brief: |
+ Check that the expected fatal source is present.
+ code: |
+ T_step_eq_int( ${step}, ctx->source, INTERNAL_ERROR_CORE );
+ links:
+ - role: validation
+ uid: ../req/fatal-idle-thread-create-failed
+ - brief: |
+ Check that the expected fatal code is present.
+ code: |
+ T_step_eq_ulong(
+ ${step},
+ ctx->code,
+ INTERNAL_ERROR_IDLE_THREAD_CREATE_FAILED
+ );
+ links:
+ - role: validation
+ uid: ../req/fatal-idle-thread-create-failed
+ links: []
+test-brief: |
+ Tests a fatal error caused by a failing task create extension.
+test-context: []
+test-context-support: null
+test-description: null
+test-header:
+ code: null
+ freestanding: true
+ includes:
+ - rtems.h
+ local-includes: []
+ run-params:
+ - description: |
+ is the fatal source.
+ dir: null
+ name: source
+ specifier: ${/rtems/userext/if/fatal-source:/name} ${.:name}
+ - description: |
+ is the fatal code.
+ dir: null
+ name: code
+ specifier: ${/rtems/userext/if/fatal-code:/name} ${.:name}
+ target: testsuites/validation/tr-fatal-idle-thread-create-failed.h
+test-includes:
+- rtems.h
+test-local-includes:
+- tr-fatal-idle-thread-create-failed.h
+test-setup: null
+test-stop: null
+test-support: null
+test-target: testsuites/validation/tr-fatal-idle-thread-create-failed.c
+test-teardown: null
+type: test-case