From: K.Kosako Date: Mon, 4 Mar 2019 05:32:12 +0000 (+0900) Subject: fix #132: don't execute testp if ENABLE_POSIX_API == no X-Git-Tag: v6.9.2_rc1~65^2~12 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d1b5c80c1ae86722f308e0aaf86126dab564298d;p=onig fix #132: don't execute testp if ENABLE_POSIX_API == no --- diff --git a/test/Makefile.am b/test/Makefile.am index 4abb38d..c623aa3 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -5,7 +5,11 @@ AM_LDFLAGS = -L$(prefix)/lib AM_CFLAGS = -Wall -Wno-invalid-source-encoding AM_CPPFLAGS = -I$(top_srcdir)/src -I$(includedir) +if ENABLE_POSIX_API TESTS = test_utf8 testc testp testcu +else +TESTS = test_utf8 testc testcu +endif check_PROGRAMS = $(TESTS) @@ -14,8 +18,10 @@ test: test_uchar $(TESTS) @./test_utf8 | grep RESULT @echo "[Oniguruma API, ASCII/EUC-JP check]" @./testc | grep RESULT +if ENABLE_POSIX_API @echo "[POSIX API, ASCII/EUC-JP check]" @./testp | grep RESULT +endif @echo "[Oniguruma API, UTF-16 check]" @./testcu | grep RESULT