[PATCH] testsuite: Only include termios10/termios11 tests if compiled with POSIX

Hesham Almatary Hesham.Almatary at cl.cam.ac.uk
Wed Nov 20 14:56:39 UTC 2019


Both need POSIX support
---
 testsuites/libtests/Makefile.am | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/testsuites/libtests/Makefile.am b/testsuites/libtests/Makefile.am
index b7a102dc7f..a97a833966 100644
--- a/testsuites/libtests/Makefile.am
+++ b/testsuites/libtests/Makefile.am
@@ -1489,6 +1489,7 @@ termios09_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_termios09) \
 endif
 
 if TEST_termios10
+if HAS_POSIX
 lib_tests += termios10
 lib_screens += termios10/termios10.scn
 lib_docs += termios10/termios10.doc
@@ -1497,8 +1498,10 @@ termios10_SOURCES += termios03/termios_testdriver_polled.c
 termios10_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_termios10) \
 	$(support_includes)
 endif
+endif
 
 if TEST_termios11
+if HAS_POSIX
 lib_tests += termios11
 lib_screens += termios11/termios11.scn
 lib_docs += termios11/termios11.doc
@@ -1507,6 +1510,7 @@ termios11_SOURCES += termios04/termios_testdriver_intr.c
 termios11_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_termios11) \
 	$(support_includes)
 endif
+endif
 
 if TEST_top
 lib_tests += top
-- 
2.17.1



More information about the devel mailing list