[PATCH] cygport/lib/src_test.cygpart: cygtest check target patch

Brian Inglis via Cygwin-apps <[email protected]> Wed, 29 Apr 2026 10:43:03 -0600
Newsgroups gmane.os.cygwin.applications
Message-ID <[email protected]>
cygport/lib/src_test.cygpart: cygtest check target patch

make -n does not always reliably detect targets when there are dependency errors
make -in ignores errors and correctly detects when targets are/not available

	$ make -n test &> /dev/null; echo $?
	2
	$ make -n check &> /dev/null; echo $?
	2
	$ make -in test &> /dev/null; echo $?
	2
	$ make -in check &> /dev/null; echo $?
	0

--- /usr/share/cygport/lib/src_test.orig.cygpart	2025-11-30 07:14:44.000000000 -0700
+++ /usr/share/cygport/lib/src_test.cygpart	2026-04-29 10:10:01.562359700 -0600
@@ -33,10 +33,10 @@
 cygtest() {
 	if [ -e Makefile -o -e GNUmakefile -o -e makefile ]
 	then
-		if make -n check &> /dev/null
+		if make -in check &> /dev/null
 		then
 			make -k check
-		elif make -n test &> /dev/null
+		elif make -in test &> /dev/null
 		then
 			make -k test
 		else