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

Jon Turney jon.turney@dronecode.org.uk
Sun Sep 20 12:29:28 GMT 2026


On 29/04/2026 17:43, Brian Inglis wrote:
> 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

I seem to have missed this last time I did a cygport release.

Applied in 0.37.9. Thanks!



More information about the Cygwin-apps mailing list