diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-10-31 16:23:52 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-11-03 11:23:30 +0100 |
commit | 47d246436f5b95359325740f4deb2df6345c971e (patch) | |
tree | 0d006b98e2449d66b8b882c39ffb6ef107e1532f /testsuites | |
parent | score: Relax _Scheduler_Set() restrictions (diff) | |
download | rtems-47d246436f5b95359325740f4deb2df6345c971e.tar.bz2 |
score: Conditionally enable thread resource count
Maintain the thread resource count only in debug configurations. This
is a performance optimization for non-debug configurations.
Diffstat (limited to 'testsuites')
-rw-r--r-- | testsuites/sptests/spfatal28/testcase.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/testsuites/sptests/spfatal28/testcase.h b/testsuites/sptests/spfatal28/testcase.h index fc721003e2..9741760dc9 100644 --- a/testsuites/sptests/spfatal28/testcase.h +++ b/testsuites/sptests/spfatal28/testcase.h @@ -22,6 +22,7 @@ void force_error() { +#if defined(RTEMS_SCORE_THREAD_ENABLE_RESOURCE_COUNT) rtems_status_code sc; rtems_id id; @@ -36,4 +37,7 @@ void force_error() sc = rtems_task_delete(RTEMS_SELF); rtems_test_assert(sc == RTEMS_SUCCESSFUL); +#else + _Terminate( INTERNAL_ERROR_CORE, false, INTERNAL_ERROR_RESOURCE_IN_USE ); +#endif } |