[rtems commit] sptests: Add spmutex01 to build

Gedare Bloom gedare at rtems.org
Mon Apr 2 03:16:03 UTC 2018


Module:    rtems
Branch:    4.10
Commit:    776caaed01153df5c67839005765fae07691eb3e
Changeset: http://git.rtems.org/rtems/commit/?id=776caaed01153df5c67839005765fae07691eb3e

Author:    Gedare Bloom <gedare at rtems.org>
Date:      Wed Dec 20 13:51:11 2017 -0500

sptests: Add spmutex01 to build

---

 testsuites/sptests/Makefile.am      |  2 +-
 testsuites/sptests/configure.ac     |  1 +
 testsuites/sptests/spmutex01/init.c | 13 ++-----------
 3 files changed, 4 insertions(+), 12 deletions(-)

diff --git a/testsuites/sptests/Makefile.am b/testsuites/sptests/Makefile.am
index 50473f2..42162ea 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 ccc143e..436f672 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 d3bc1ed..454d844 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



More information about the vc mailing list