[PATCH 11/14] posix: Enable psxtmtests tests by default

Sebastian Huber sebastian.huber at embedded-brains.de
Mon Oct 29 09:03:20 UTC 2018


Update #2514.
---
 testsuites/psxtmtests/Makefile.am      | 98 ----------------------------------
 testsuites/psxtmtests/psxtmmq01/init.c |  2 +
 2 files changed, 2 insertions(+), 98 deletions(-)

diff --git a/testsuites/psxtmtests/Makefile.am b/testsuites/psxtmtests/Makefile.am
index 981417dbc2..26691071a1 100644
--- a/testsuites/psxtmtests/Makefile.am
+++ b/testsuites/psxtmtests/Makefile.am
@@ -13,7 +13,6 @@ psxtm_docs =
 
 support_includes = -I$(top_srcdir)/../support/include
 
-if HAS_POSIX
 if TEST_psxtmbarrier01
 psxtm_tests += psxtmbarrier01
 psxtm_docs += psxtmbarrier01/psxtmbarrier01.doc
@@ -24,9 +23,7 @@ psxtmbarrier01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxtmbarrier01) \
 	$(support_includes) -I$(top_srcdir)/../tmtests/include \
 	-DOPERATION_COUNT=$(OPERATION_COUNT)
 endif
-endif
 
-if HAS_POSIX
 if TEST_psxtmbarrier02
 psxtm_tests += psxtmbarrier02
 psxtm_docs += psxtmbarrier02/psxtmbarrier02.doc
@@ -37,9 +34,7 @@ psxtmbarrier02_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxtmbarrier02) \
 	$(support_includes) -I$(top_srcdir)/../tmtests/include \
 	-DOPERATION_COUNT=$(OPERATION_COUNT)
 endif
-endif
 
-if HAS_POSIX
 if TEST_psxtmbarrier03
 psxtm_tests += psxtmbarrier03
 psxtm_docs += psxtmbarrier03/psxtmbarrier03.doc
@@ -50,9 +45,7 @@ psxtmbarrier03_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxtmbarrier03) \
 	$(support_includes) -I$(top_srcdir)/../tmtests/include \
 	-DOPERATION_COUNT=$(OPERATION_COUNT)
 endif
-endif
 
-if HAS_POSIX
 if TEST_psxtmbarrier04
 psxtm_tests += psxtmbarrier04
 psxtm_docs += psxtmbarrier04/psxtmbarrier04.doc
@@ -63,9 +56,7 @@ psxtmbarrier04_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxtmbarrier04) \
 	$(support_includes) -I$(top_srcdir)/../tmtests/include \
 	-DOPERATION_COUNT=$(OPERATION_COUNT)
 endif
-endif
 
-if HAS_POSIX
 if TEST_psxtmclocknanosleep01
 psxtm_tests += psxtmclocknanosleep01
 psxtm_docs += psxtmclocknanosleep01/psxtmclocknanosleep01.doc
@@ -77,9 +68,7 @@ psxtmclocknanosleep01_CPPFLAGS = $(AM_CPPFLAGS) \
 	-I$(top_srcdir)/../tmtests/include \
 	-DOPERATION_COUNT=$(OPERATION_COUNT)
 endif
-endif
 
-if HAS_POSIX
 if TEST_psxtmclocknanosleep02
 psxtm_tests += psxtmclocknanosleep02
 psxtm_docs += psxtmclocknanosleep02/psxtmclocknanosleep02.doc
@@ -91,9 +80,7 @@ psxtmclocknanosleep02_CPPFLAGS = $(AM_CPPFLAGS) \
 	-I$(top_srcdir)/../tmtests/include \
 	-DOPERATION_COUNT=$(OPERATION_COUNT)
 endif
-endif
 
-if HAS_POSIX
 if TEST_psxtmclocknanosleep03
 psxtm_tests += psxtmclocknanosleep03
 psxtm_docs += psxtmclocknanosleep03/psxtmclocknanosleep03.doc
@@ -105,9 +92,7 @@ psxtmclocknanosleep03_CPPFLAGS = $(AM_CPPFLAGS) \
 	-I$(top_srcdir)/../tmtests/include \
 	-DOPERATION_COUNT=$(OPERATION_COUNT)
 endif
-endif
 
-if HAS_POSIX
 if TEST_psxtmcond01
 psxtm_tests += psxtmcond01
 psxtm_docs += psxtmcond01/psxtmcond01.doc
@@ -118,9 +103,7 @@ psxtmcond01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxtmcond01) \
 	$(support_includes) -I$(top_srcdir)/../tmtests/include \
 	-DOPERATION_COUNT=$(OPERATION_COUNT)
 endif
-endif
 
-if HAS_POSIX
 if TEST_psxtmcond02
 psxtm_tests += psxtmcond02
 psxtm_docs += psxtmcond02/psxtmcond02.doc
@@ -131,9 +114,7 @@ psxtmcond02_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxtmcond02) \
 	$(support_includes) -I$(top_srcdir)/../tmtests/include \
 	-DOPERATION_COUNT=$(OPERATION_COUNT)
 endif
-endif
 
-if HAS_POSIX
 if TEST_psxtmcond03
 psxtm_tests += psxtmcond03
 psxtm_docs += psxtmcond03/psxtmcond03.doc
@@ -144,9 +125,7 @@ psxtmcond03_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxtmcond03) \
 	$(support_includes) -I$(top_srcdir)/../tmtests/include \
 	-DOPERATION_COUNT=$(OPERATION_COUNT)
 endif
-endif
 
-if HAS_POSIX
 if TEST_psxtmcond04
 psxtm_tests += psxtmcond04
 psxtm_docs += psxtmcond04/psxtmcond04.doc
@@ -157,9 +136,7 @@ psxtmcond04_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxtmcond04) \
 	$(support_includes) -I$(top_srcdir)/../tmtests/include \
 	-DOPERATION_COUNT=$(OPERATION_COUNT)
 endif
-endif
 
-if HAS_POSIX
 if TEST_psxtmcond05
 psxtm_tests += psxtmcond05
 psxtm_docs += psxtmcond05/psxtmcond05.doc
@@ -170,9 +147,7 @@ psxtmcond05_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxtmcond05) \
 	$(support_includes) -I$(top_srcdir)/../tmtests/include \
 	-DOPERATION_COUNT=$(OPERATION_COUNT)
 endif
-endif
 
-if HAS_POSIX
 if TEST_psxtmcond06
 psxtm_tests += psxtmcond06
 psxtm_docs += psxtmcond06/psxtmcond06.doc
@@ -183,9 +158,7 @@ psxtmcond06_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxtmcond06) \
 	$(support_includes) -I$(top_srcdir)/../tmtests/include \
 	-DOPERATION_COUNT=$(OPERATION_COUNT)
 endif
-endif
 
-if HAS_POSIX
 if TEST_psxtmcond07
 psxtm_tests += psxtmcond07
 psxtm_docs += psxtmcond07/psxtmcond07.doc
@@ -196,9 +169,7 @@ psxtmcond07_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxtmcond07) \
 	$(support_includes) -I$(top_srcdir)/../tmtests/include \
 	-DOPERATION_COUNT=$(OPERATION_COUNT)
 endif
-endif
 
-if HAS_POSIX
 if TEST_psxtmcond08
 psxtm_tests += psxtmcond08
 psxtm_docs += psxtmcond08/psxtmcond08.doc
@@ -209,9 +180,7 @@ psxtmcond08_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxtmcond08) \
 	$(support_includes) -I$(top_srcdir)/../tmtests/include \
 	-DOPERATION_COUNT=$(OPERATION_COUNT) -DUSE_WAIT
 endif
-endif
 
-if HAS_POSIX
 if TEST_psxtmcond09
 psxtm_tests += psxtmcond09
 psxtm_docs += psxtmcond09/psxtmcond09.doc
@@ -222,9 +191,7 @@ psxtmcond09_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxtmcond09) \
 	$(support_includes) -I$(top_srcdir)/../tmtests/include \
 	-DOPERATION_COUNT=$(OPERATION_COUNT) -DUSE_TIMEDWAIT_WITH_VALUE
 endif
-endif
 
-if HAS_POSIX
 if TEST_psxtmcond10
 psxtm_tests += psxtmcond10
 psxtm_docs += psxtmcond10/psxtmcond10.doc
@@ -236,9 +203,7 @@ psxtmcond10_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxtmcond10) \
 	-DOPERATION_COUNT=$(OPERATION_COUNT) \
 	-DUSE_TIMEDWAIT_WAIT_VALUE_IN_PAST
 endif
-endif
 
-if HAS_POSIX
 if TEST_psxtmkey01
 psxtm_tests += psxtmkey01
 psxtm_docs += psxtmkey01/psxtmkey01.doc
@@ -249,9 +214,7 @@ psxtmkey01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxtmkey01) \
 	$(support_includes) -I$(top_srcdir)/../tmtests/include \
 	-DOPERATION_COUNT=$(OPERATION_COUNT)
 endif
-endif
 
-if HAS_POSIX
 if TEST_psxtmkey02
 psxtm_tests += psxtmkey02
 psxtm_docs += psxtmkey02/psxtmkey02.doc
@@ -262,9 +225,7 @@ psxtmkey02_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxtmkey02) \
 	$(support_includes) -I$(top_srcdir)/../tmtests/include \
 	-DOPERATION_COUNT=$(OPERATION_COUNT)
 endif
-endif
 
-if HAS_POSIX
 if TEST_psxtmmq01
 psxtm_tests += psxtmmq01
 psxtm_docs += psxtmmq01/psxtmmq01.doc
@@ -275,9 +236,7 @@ psxtmmq01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxtmmq01) \
 	$(support_includes) -I$(top_srcdir)/../tmtests/include \
 	-DOPERATION_COUNT=$(OPERATION_COUNT)
 endif
-endif
 
-if HAS_POSIX
 if TEST_psxtmmutex01
 psxtm_tests += psxtmmutex01
 psxtm_docs += psxtmmutex01/psxtmmutex01.doc
@@ -288,9 +247,7 @@ psxtmmutex01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxtmmutex01) \
 	$(support_includes) -I$(top_srcdir)/../tmtests/include \
 	-DOPERATION_COUNT=$(OPERATION_COUNT)
 endif
-endif
 
-if HAS_POSIX
 if TEST_psxtmmutex02
 psxtm_tests += psxtmmutex02
 psxtm_docs += psxtmmutex02/psxtmmutex02.doc
@@ -301,9 +258,7 @@ psxtmmutex02_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxtmmutex02) \
 	$(support_includes) -I$(top_srcdir)/../tmtests/include \
 	-DOPERATION_COUNT=$(OPERATION_COUNT)
 endif
-endif
 
-if HAS_POSIX
 if TEST_psxtmmutex03
 psxtm_tests += psxtmmutex03
 psxtm_docs += psxtmmutex03/psxtmmutex03.doc
@@ -314,9 +269,7 @@ psxtmmutex03_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxtmmutex03) \
 	$(support_includes) -I$(top_srcdir)/../tmtests/include \
 	-DOPERATION_COUNT=$(OPERATION_COUNT)
 endif
-endif
 
-if HAS_POSIX
 if TEST_psxtmmutex04
 psxtm_tests += psxtmmutex04
 psxtm_docs += psxtmmutex04/psxtmmutex04.doc
@@ -327,9 +280,7 @@ psxtmmutex04_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxtmmutex04) \
 	$(support_includes) -I$(top_srcdir)/../tmtests/include \
 	-DOPERATION_COUNT=$(OPERATION_COUNT)
 endif
-endif
 
-if HAS_POSIX
 if TEST_psxtmmutex05
 psxtm_tests += psxtmmutex05
 psxtm_docs += psxtmmutex05/psxtmmutex05.doc
@@ -340,9 +291,7 @@ psxtmmutex05_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxtmmutex05) \
 	$(support_includes) -I$(top_srcdir)/../tmtests/include \
 	-DOPERATION_COUNT=$(OPERATION_COUNT)
 endif
-endif
 
-if HAS_POSIX
 if TEST_psxtmmutex06
 psxtm_tests += psxtmmutex06
 psxtm_docs += psxtmmutex06/psxtmmutex06.doc
@@ -353,9 +302,7 @@ psxtmmutex06_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxtmmutex06) \
 	$(support_includes) -I$(top_srcdir)/../tmtests/include \
 	-DOPERATION_COUNT=$(OPERATION_COUNT)
 endif
-endif
 
-if HAS_POSIX
 if TEST_psxtmmutex07
 psxtm_tests += psxtmmutex07
 psxtm_docs += psxtmmutex07/psxtmmutex07.doc
@@ -366,9 +313,7 @@ psxtmmutex07_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxtmmutex07) \
 	$(support_includes) -I$(top_srcdir)/../tmtests/include \
 	-DOPERATION_COUNT=$(OPERATION_COUNT)
 endif
-endif
 
-if HAS_POSIX
 if TEST_psxtmnanosleep01
 psxtm_tests += psxtmnanosleep01
 psxtm_docs += psxtmnanosleep01/psxtmnanosleep01.doc
@@ -380,9 +325,7 @@ psxtmnanosleep01_CPPFLAGS = $(AM_CPPFLAGS) \
 	-I$(top_srcdir)/../tmtests/include \
 	-DOPERATION_COUNT=$(OPERATION_COUNT)
 endif
-endif
 
-if HAS_POSIX
 if TEST_psxtmnanosleep02
 psxtm_tests += psxtmnanosleep02
 psxtm_docs += psxtmnanosleep02/psxtmnanosleep02.doc
@@ -394,9 +337,7 @@ psxtmnanosleep02_CPPFLAGS = $(AM_CPPFLAGS) \
 	-I$(top_srcdir)/../tmtests/include \
 	-DOPERATION_COUNT=$(OPERATION_COUNT)
 endif
-endif
 
-if HAS_POSIX
 if TEST_psxtmrwlock01
 psxtm_tests += psxtmrwlock01
 psxtm_docs += psxtmrwlock01/psxtmrwlock01.doc
@@ -407,9 +348,7 @@ psxtmrwlock01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxtmrwlock01) \
 	$(support_includes) -I$(top_srcdir)/../tmtests/include \
 	-DOPERATION_COUNT=$(OPERATION_COUNT)
 endif
-endif
 
-if HAS_POSIX
 if TEST_psxtmrwlock02
 psxtm_tests += psxtmrwlock02
 psxtm_docs += psxtmrwlock02/psxtmrwlock02.doc
@@ -420,9 +359,7 @@ psxtmrwlock02_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxtmrwlock02) \
 	$(support_includes) -I$(top_srcdir)/../tmtests/include \
 	-DOPERATION_COUNT=$(OPERATION_COUNT)
 endif
-endif
 
-if HAS_POSIX
 if TEST_psxtmrwlock03
 psxtm_tests += psxtmrwlock03
 psxtm_docs += psxtmrwlock03/psxtmrwlock03.doc
@@ -433,9 +370,7 @@ psxtmrwlock03_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxtmrwlock03) \
 	$(support_includes) -I$(top_srcdir)/../tmtests/include \
 	-DOPERATION_COUNT=$(OPERATION_COUNT)
 endif
-endif
 
-if HAS_POSIX
 if TEST_psxtmrwlock04
 psxtm_tests += psxtmrwlock04
 psxtm_docs += psxtmrwlock04/psxtmrwlock04.doc
@@ -446,9 +381,7 @@ psxtmrwlock04_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxtmrwlock04) \
 	$(support_includes) -I$(top_srcdir)/../tmtests/include \
 	-DOPERATION_COUNT=$(OPERATION_COUNT)
 endif
-endif
 
-if HAS_POSIX
 if TEST_psxtmrwlock05
 psxtm_tests += psxtmrwlock05
 psxtm_docs += psxtmrwlock05/psxtmrwlock05.doc
@@ -459,9 +392,7 @@ psxtmrwlock05_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxtmrwlock05) \
 	$(support_includes) -I$(top_srcdir)/../tmtests/include \
 	-DOPERATION_COUNT=$(OPERATION_COUNT)
 endif
-endif
 
-if HAS_POSIX
 if TEST_psxtmrwlock06
 psxtm_tests += psxtmrwlock06
 psxtm_docs += psxtmrwlock06/psxtmrwlock06.doc
@@ -472,9 +403,7 @@ psxtmrwlock06_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxtmrwlock06) \
 	$(support_includes) -I$(top_srcdir)/../tmtests/include \
 	-DOPERATION_COUNT=$(OPERATION_COUNT)
 endif
-endif
 
-if HAS_POSIX
 if TEST_psxtmrwlock07
 psxtm_tests += psxtmrwlock07
 psxtm_docs += psxtmrwlock07/psxtmrwlock07.doc
@@ -485,9 +414,7 @@ psxtmrwlock07_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxtmrwlock07) \
 	$(support_includes) -I$(top_srcdir)/../tmtests/include \
 	-DOPERATION_COUNT=$(OPERATION_COUNT)
 endif
-endif
 
-if HAS_POSIX
 if TEST_psxtmsem01
 psxtm_tests += psxtmsem01
 psxtm_docs += psxtmsem01/psxtmsem01.doc
@@ -498,9 +425,7 @@ psxtmsem01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxtmsem01) \
 	$(support_includes) -I$(top_srcdir)/../tmtests/include \
 	-DOPERATION_COUNT=$(OPERATION_COUNT)
 endif
-endif
 
-if HAS_POSIX
 if TEST_psxtmsem02
 psxtm_tests += psxtmsem02
 psxtm_docs += psxtmsem02/psxtmsem02.doc
@@ -511,9 +436,7 @@ psxtmsem02_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxtmsem02) \
 	$(support_includes) -I$(top_srcdir)/../tmtests/include \
 	-DOPERATION_COUNT=$(OPERATION_COUNT)
 endif
-endif
 
-if HAS_POSIX
 if TEST_psxtmsem03
 psxtm_tests += psxtmsem03
 psxtm_docs += psxtmsem03/psxtmsem03.doc
@@ -524,9 +447,7 @@ psxtmsem03_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxtmsem03) \
 	$(support_includes) -I$(top_srcdir)/../tmtests/include \
 	-DOPERATION_COUNT=$(OPERATION_COUNT)
 endif
-endif
 
-if HAS_POSIX
 if TEST_psxtmsem04
 psxtm_tests += psxtmsem04
 psxtm_docs += psxtmsem04/psxtmsem04.doc
@@ -537,9 +458,7 @@ psxtmsem04_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxtmsem04) \
 	$(support_includes) -I$(top_srcdir)/../tmtests/include \
 	-DOPERATION_COUNT=$(OPERATION_COUNT)
 endif
-endif
 
-if HAS_POSIX
 if TEST_psxtmsem05
 psxtm_tests += psxtmsem05
 psxtm_docs += psxtmsem05/psxtmsem05.doc
@@ -550,9 +469,7 @@ psxtmsem05_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxtmsem05) \
 	$(support_includes) -I$(top_srcdir)/../tmtests/include \
 	-DOPERATION_COUNT=$(OPERATION_COUNT)
 endif
-endif
 
-if HAS_POSIX
 if TEST_psxtmsleep01
 psxtm_tests += psxtmsleep01
 psxtm_docs += psxtmsleep01/psxtmsleep01.doc
@@ -563,9 +480,7 @@ psxtmsleep01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxtmsleep01) \
 	$(support_includes) -I$(top_srcdir)/../tmtests/include \
 	-DOPERATION_COUNT=$(OPERATION_COUNT)
 endif
-endif
 
-if HAS_POSIX
 if TEST_psxtmsleep02
 psxtm_tests += psxtmsleep02
 psxtm_docs += psxtmsleep02/psxtmsleep02.doc
@@ -576,9 +491,7 @@ psxtmsleep02_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxtmsleep02) \
 	$(support_includes) -I$(top_srcdir)/../tmtests/include \
 	-DOPERATION_COUNT=$(OPERATION_COUNT)
 endif
-endif
 
-if HAS_POSIX
 if TEST_psxtmthread01
 psxtm_tests += psxtmthread01
 psxtm_docs += psxtmthread01/psxtmthread01.doc
@@ -589,9 +502,7 @@ psxtmthread01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxtmthread01) \
 	$(support_includes) -I$(top_srcdir)/../tmtests/include \
 	-DOPERATION_COUNT=$(OPERATION_COUNT)
 endif
-endif
 
-if HAS_POSIX
 if TEST_psxtmthread02
 psxtm_tests += psxtmthread02
 psxtm_docs += psxtmthread02/psxtmthread02.doc
@@ -602,9 +513,7 @@ psxtmthread02_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxtmthread02) \
 	$(support_includes) -I$(top_srcdir)/../tmtests/include \
 	-DOPERATION_COUNT=$(OPERATION_COUNT)
 endif
-endif
 
-if HAS_POSIX
 if TEST_psxtmthread03
 psxtm_tests += psxtmthread03
 psxtm_docs += psxtmthread03/psxtmthread03.doc
@@ -615,9 +524,7 @@ psxtmthread03_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxtmthread03) \
 	$(support_includes) -I$(top_srcdir)/../tmtests/include \
 	-DOPERATION_COUNT=$(OPERATION_COUNT)
 endif
-endif
 
-if HAS_POSIX
 if TEST_psxtmthread04
 psxtm_tests += psxtmthread04
 psxtm_docs += psxtmthread04/psxtmthread04.doc
@@ -628,9 +535,7 @@ psxtmthread04_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxtmthread04) \
 	$(support_includes) -I$(top_srcdir)/../tmtests/include \
 	-DOPERATION_COUNT=$(OPERATION_COUNT)
 endif
-endif
 
-if HAS_POSIX
 if TEST_psxtmthread05
 psxtm_tests += psxtmthread05
 psxtm_docs += psxtmthread05/psxtmthread05.doc
@@ -641,9 +546,7 @@ psxtmthread05_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxtmthread05) \
 	$(support_includes) -I$(top_srcdir)/../tmtests/include \
 	-DOPERATION_COUNT=$(OPERATION_COUNT)
 endif
-endif
 
-if HAS_POSIX
 if TEST_psxtmthread06
 psxtm_tests += psxtmthread06
 psxtm_docs += psxtmthread06/psxtmthread06.doc
@@ -654,7 +557,6 @@ psxtmthread06_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxtmthread06) \
 	$(support_includes) -I$(top_srcdir)/../tmtests/include \
 	-DOPERATION_COUNT=$(OPERATION_COUNT)
 endif
-endif
 
 rtems_tests_PROGRAMS = $(psxtm_tests)
 dist_rtems_tests_DATA = $(psxtm_screens) $(psxtm_docs)
diff --git a/testsuites/psxtmtests/psxtmmq01/init.c b/testsuites/psxtmtests/psxtmmq01/init.c
index ac5ab402a8..d4bdf6d8f6 100644
--- a/testsuites/psxtmtests/psxtmmq01/init.c
+++ b/testsuites/psxtmtests/psxtmmq01/init.c
@@ -140,6 +140,7 @@ static void benchmark_mq_unlink(void)
 
 static void benchmark_mq_notify(void)
 {
+#if defined(RTEMS_POSIX_API)
   benchmark_timer_t end_time;
   int             status;
   struct sigevent event;
@@ -159,6 +160,7 @@ static void benchmark_mq_notify(void)
     0,
     0
   );
+#endif
 }
 
 static void benchmark_mq_send(void)
-- 
2.16.4




More information about the devel mailing list