[rtems-testing commit] rtems-test-template: Ensure more templates compile

Joel Sherrill joel at rtems.org
Fri Nov 2 21:52:09 UTC 2018


Module:    rtems-testing
Branch:    master
Commit:    00c07641ab15729e6db684854d3fe73cbc07f989
Changeset: http://git.rtems.org/rtems-testing/commit/?id=00c07641ab15729e6db684854d3fe73cbc07f989

Author:    Joel Sherrill <joel at rtems.org>
Date:      Fri Nov  2 16:52:03 2018 -0500

rtems-test-template: Ensure more templates compile

---

 rtems-test-template/psxtest/init.c                | 3 ++-
 rtems-test-template/psxtest_with_thread/init.c    | 5 +++--
 rtems-test-template/psxtmtest_init_destroy/init.c | 2 +-
 3 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/rtems-test-template/psxtest/init.c b/rtems-test-template/psxtest/init.c
index 9c6f0a8..077d27b 100644
--- a/rtems-test-template/psxtest/init.c
+++ b/rtems-test-template/psxtest/init.c
@@ -15,6 +15,7 @@
  */
 
 #include "test_support.h"
+#include <tmacros.h>
 
 const char rtems_test_name[] = "@UPPER@";
 
@@ -22,7 +23,7 @@ const char rtems_test_name[] = "@UPPER@";
 void *POSIX_Init(void *argument);
 
 void *POSIX_Init(
-  rtems_task_argument argument
+  void *argument
 )
 {
   TEST_BEGIN();
diff --git a/rtems-test-template/psxtest_with_thread/init.c b/rtems-test-template/psxtest_with_thread/init.c
index 2d0c0fd..b2d6e93 100644
--- a/rtems-test-template/psxtest_with_thread/init.c
+++ b/rtems-test-template/psxtest_with_thread/init.c
@@ -14,8 +14,9 @@
  *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-#include <tmacros.h>
 #include "test_support.h"
+#include <tmacros.h>
+
 #include <pthread.h>
 
 /* forward declarations to avoid warnings */
@@ -32,7 +33,7 @@ void *TestThread(
 }
 
 void *POSIX_Init(
-  rtems_task_argument argument
+  void *argument
 )
 {
   int status;
diff --git a/rtems-test-template/psxtmtest_init_destroy/init.c b/rtems-test-template/psxtmtest_init_destroy/init.c
index 4bd88f9..975ce50 100644
--- a/rtems-test-template/psxtmtest_init_destroy/init.c
+++ b/rtems-test-template/psxtmtest_init_destroy/init.c
@@ -22,7 +22,7 @@
 #include <rtems/btimer.h>
 #include "test_support.h"
 
-const char rtems_test_name[] = "@UPPER@";""
+const char rtems_test_name[] = "@UPPER@";
 
 /* forward declarations to avoid warnings */
 void *POSIX_Init(void *argument);



More information about the vc mailing list