summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGedare Bloom <gedare@rtems.org>2017-12-20 13:51:11 -0500
committerGedare Bloom <gedare@rtems.org>2018-03-23 11:33:59 -0400
commit776caaed01153df5c67839005765fae07691eb3e (patch)
tree47b5e26665a9160ac564f5670ffc2d98cedfed4e
parentsptests/spmutex01: test flush with inherit prio (diff)
downloadrtems-776caaed01153df5c67839005765fae07691eb3e.tar.bz2
sptests: Add spmutex01 to build
-rw-r--r--testsuites/sptests/Makefile.am2
-rw-r--r--testsuites/sptests/configure.ac1
-rw-r--r--testsuites/sptests/spmutex01/init.c13
3 files changed, 4 insertions, 12 deletions
diff --git a/testsuites/sptests/Makefile.am b/testsuites/sptests/Makefile.am
index 50473f27d4..42162ea6e2 100644
--- a/testsuites/sptests/Makefile.am
+++ b/testsuites/sptests/Makefile.am
@@ -23,7 +23,7 @@ _SUBDIRS = \
spintrcritical09 spintrcritical10 spintrcritical11 spintrcritical12 \
spintrcritical13 spintrcritical14 spintrcritical15 spintrcritical16 \
spintrcritical17
-
+_SUBDIRS += spmutex01
_SUBDIRS += spsem01 spsem02 spsem03 spsem04 spsem05
DIST_SUBDIRS = $(_SUBDIRS) spfatal_support spintrcritical_support
diff --git a/testsuites/sptests/configure.ac b/testsuites/sptests/configure.ac
index ccc143e5d2..436f672b9b 100644
--- a/testsuites/sptests/configure.ac
+++ b/testsuites/sptests/configure.ac
@@ -128,6 +128,7 @@ spintrcritical14/Makefile
spintrcritical15/Makefile
spintrcritical16/Makefile
spintrcritical17/Makefile
+spmutex01/Makefile
spnotepad01/Makefile
spobjgetnext/Makefile
spprintk/Makefile
diff --git a/testsuites/sptests/spmutex01/init.c b/testsuites/sptests/spmutex01/init.c
index d3bc1ed79a..454d844a1e 100644
--- a/testsuites/sptests/spmutex01/init.c
+++ b/testsuites/sptests/spmutex01/init.c
@@ -461,10 +461,8 @@ static void tear_down(test_context *ctx)
static void Init(rtems_task_argument arg)
{
test_context *ctx = &test_instance;
- rtems_resource_snapshot snapshot;
- TEST_BEGIN();
- rtems_resource_snapshot_take(&snapshot);
+ printf("*** BEGIN OF TEST SPMUTEX 1 ***\n");
set_up(ctx);
test_inherit(ctx);
@@ -475,8 +473,7 @@ static void Init(rtems_task_argument arg)
test_inherit_flush(ctx);
tear_down(ctx);
- rtems_test_assert(rtems_resource_snapshot_check(&snapshot));
- TEST_END();
+ printf("*** END OF TEST SPMUTEX 1 ***\n");
rtems_test_exit(0);
}
@@ -487,12 +484,6 @@ static void Init(rtems_task_argument arg)
#define CONFIGURE_MAXIMUM_SEMAPHORES 3
-#ifdef RTEMS_POSIX_API
-#define CONFIGURE_MAXIMUM_POSIX_MUTEXES 1
-#endif
-
-#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
-
#define CONFIGURE_INIT_TASK_PRIORITY 3
#define CONFIGURE_INIT_TASK_INITIAL_MODES RTEMS_DEFAULT_MODES