summaryrefslogtreecommitdiffstats
path: root/testsuites/sptests/spnotepad01
diff options
context:
space:
mode:
authorAun-Ali Zaidi <admin@kodeit.net>2015-12-23 14:44:02 -0600
committerJoel Sherrill <joel.sherrill@oarcorp.com>2015-12-24 16:52:34 -0600
commitd5154d0f6a04f3b7ed59d9a09038576fe2640756 (patch)
tree4b6dcf6e9b116223903afbc1b1141d28fb751848 /testsuites/sptests/spnotepad01
parentscore: Fix watchdog removal (diff)
downloadrtems-d5154d0f6a04f3b7ed59d9a09038576fe2640756.tar.bz2
api: Remove deprecated Notepads
Notepads where a feature of RTEMS' tasks that simply functioned in the same way as POSIX keys or threaded local storage (TLS). They were introduced well before per task variables, which are also deprecated, and were barely used in favor of their POSIX alternatives. In addition to their scarce usage, Notepads took up unnecessary memory. For each task: - 16 32-bit integers were allocated. - A total of 64 bytes per task per thread. This is especially critical in low memory and safety-critical applications. They are also defined as uint32_t, and therefore are not guaranteed to hold a pointer. Lastly, they are not portable solutions for SMP and uniprocessor systems, like POSIX keys and TLS. updates #2493.
Diffstat (limited to 'testsuites/sptests/spnotepad01')
-rw-r--r--testsuites/sptests/spnotepad01/Makefile.am22
-rw-r--r--testsuites/sptests/spnotepad01/init.c70
-rw-r--r--testsuites/sptests/spnotepad01/spnotepad01.doc23
-rw-r--r--testsuites/sptests/spnotepad01/spnotepad01.scn4
4 files changed, 0 insertions, 119 deletions
diff --git a/testsuites/sptests/spnotepad01/Makefile.am b/testsuites/sptests/spnotepad01/Makefile.am
deleted file mode 100644
index e017ac1da2..0000000000
--- a/testsuites/sptests/spnotepad01/Makefile.am
+++ /dev/null
@@ -1,22 +0,0 @@
-
-rtems_tests_PROGRAMS = spnotepad01
-spnotepad01_SOURCES = init.c
-
-dist_rtems_tests_DATA = spnotepad01.scn
-dist_rtems_tests_DATA += spnotepad01.doc
-
-include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
-include $(top_srcdir)/../automake/compile.am
-include $(top_srcdir)/../automake/leaf.am
-
-
-AM_CPPFLAGS += -I$(top_srcdir)/../support/include
-
-LINK_OBJS = $(spnotepad01_OBJECTS)
-LINK_LIBS = $(spnotepad01_LDLIBS)
-
-spnotepad01$(EXEEXT): $(spnotepad01_OBJECTS) $(spnotepad01_DEPENDENCIES)
- @rm -f spnotepad01$(EXEEXT)
- $(make-exe)
-
-include $(top_srcdir)/../automake/local.am
diff --git a/testsuites/sptests/spnotepad01/init.c b/testsuites/sptests/spnotepad01/init.c
deleted file mode 100644
index 965d69dd2c..0000000000
--- a/testsuites/sptests/spnotepad01/init.c
+++ /dev/null
@@ -1,70 +0,0 @@
-/*
- * COPYRIGHT (c) 1989-2009.
- * On-Line Applications Research Corporation (OAR).
- *
- * The license and distribution terms for this file may be
- * found in the file LICENSE in this distribution or at
- * http://www.rtems.org/license/LICENSE.
- */
-
-#ifdef HAVE_CONFIG_H
-#include "config.h"
-#endif
-
-#include "tmacros.h"
-
-const char rtems_test_name[] = "SPNOTEPAD 1";
-
-/*
- * We know this is deprecated and don't want a warning on every BSP built.
- */
-#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
-
-/* forward declarations to avoid warnings */
-rtems_task Init(rtems_task_argument argument);
-
-rtems_task Init(
- rtems_task_argument ignored
-)
-{
- rtems_status_code status;
- uint32_t note;
-
- TEST_BEGIN();
-
- puts( "Init - rtems_task_get_note - RTEMS_NOT_CONFIGURED" );
- status = rtems_task_get_note( rtems_task_self(), 0, &note );
- fatal_directive_status(
- status,
- RTEMS_NOT_CONFIGURED,
- "rtems_task_get_note not configured"
- );
-
- puts( "Init - rtems_task_set_note - RTEMS_NOT_CONFIGURED" );
- status = rtems_task_set_note( rtems_task_self(), 0, 1 );
- fatal_directive_status(
- status,
- RTEMS_NOT_CONFIGURED,
- "rtems_task_set_note not configured"
- );
-
- TEST_END();
-
- rtems_test_exit(0);
-}
-
-/* configuration information */
-
-#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
-#define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER
-
-#define CONFIGURE_MAXIMUM_TASKS 1
-#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
-
-#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
-
-#define CONFIGURE_INIT
-
-#include <rtems/confdefs.h>
-
-/* global variables */
diff --git a/testsuites/sptests/spnotepad01/spnotepad01.doc b/testsuites/sptests/spnotepad01/spnotepad01.doc
deleted file mode 100644
index d90c4e197b..0000000000
--- a/testsuites/sptests/spnotepad01/spnotepad01.doc
+++ /dev/null
@@ -1,23 +0,0 @@
-# COPYRIGHT (c) 1989-2009.
-# On-Line Applications Research Corporation (OAR).
-#
-# The license and distribution terms for this file may be
-# found in the file LICENSE in this distribution or at
-# http://www.rtems.org/license/LICENSE.
-#
-
-This file describes the directives and concepts tested by this test set.
-
-test set name: spnotepad01
-
-directives:
-
- rtems_task_get_note
- rtems_task_set_note
-
-concepts:
-
-+ Ensure that the proper error code is returned by the notepad services
- when notepads are not configured.
- is less than the minimum. This is mainly to ensure that a branch is taken.
-
diff --git a/testsuites/sptests/spnotepad01/spnotepad01.scn b/testsuites/sptests/spnotepad01/spnotepad01.scn
deleted file mode 100644
index ce1d3b235e..0000000000
--- a/testsuites/sptests/spnotepad01/spnotepad01.scn
+++ /dev/null
@@ -1,4 +0,0 @@
-*** TEST NOTEPADS DISABLED ***
-Init - rtems_task_get_note - RTEMS_NOT_CONFIGURED
-Init - rtems_task_set_note - RTEMS_NOT_CONFIGURED
-*** END OF TEST NOTEPADS DISABLED ***