head	1.4;
access;
symbols
	netbsd-11-0-RC4:1.4
	netbsd-11-0-RC3:1.4
	netbsd-11-0-RC2:1.4
	netbsd-11-0-RC1:1.4
	perseant-exfatfs-base-20250801:1.4
	netbsd-11:1.4.0.6
	netbsd-11-base:1.4
	netbsd-10-1-RELEASE:1.4
	perseant-exfatfs-base-20240630:1.4
	perseant-exfatfs:1.4.0.4
	perseant-exfatfs-base:1.4
	netbsd-10-0-RELEASE:1.4
	netbsd-10-0-RC6:1.4
	netbsd-10-0-RC5:1.4
	netbsd-10-0-RC4:1.4
	netbsd-10-0-RC3:1.4
	netbsd-10-0-RC2:1.4
	netbsd-10-0-RC1:1.4
	netbsd-10:1.4.0.2
	netbsd-10-base:1.4;
locks; strict;
comment	@# @;


1.4
date	2021.07.31.20.55.46;	author rillig;	state Exp;
branches;
next	1.3;
commitid	dDP41kUtguNXnb3D;

1.3
date	2021.07.30.23.28.04;	author rillig;	state Exp;
branches;
next	1.2;
commitid	krWdTlaCEqIDf43D;

1.2
date	2021.07.30.22.16.09;	author rillig;	state Exp;
branches;
next	1.1;
commitid	XsdHj0eQqzjZR33D;

1.1
date	2021.07.30.19.55.22;	author sjg;	state Exp;
branches;
next	;
commitid	QWVT7ooJ4p6Q533D;


desc
@@


1.4
log
@tests/make: split tests for the variable modifier ':O'

The tests for parse errors are now in varmod-order, which lets the other
tests focus on the desired behavior of the modifiers.
@
text
@exit status 0
@


1.3
log
@make: handle parse errors in ':O' uniformly

Previously, the error handling for the variable modifier ':O' differed
depending on the exact variant and in some cases led to misleading
or missing diagnostics.
@
text
@d1 1
a1 20
make: Bad modifier ":Oxn" for variable "NUMBERS"
make: "varmod-order-numeric.mk" line 32: Malformed conditional (${NUMBERS:Oxn})
make: Bad modifier ":On_typo" for variable "NUMBERS"
make: "varmod-order-numeric.mk" line 42: Malformed conditional (${NUMBERS:On_typo})
make: Bad modifier ":Onr_typo" for variable "NUMBERS"
make: "varmod-order-numeric.mk" line 51: Malformed conditional (${NUMBERS:Onr_typo})
make: Bad modifier ":Orn_typo" for variable "NUMBERS"
make: "varmod-order-numeric.mk" line 60: Malformed conditional (${NUMBERS:Orn_typo})
make: Bad modifier ":Onn" for variable "NUMBERS"
make: "varmod-order-numeric.mk" line 71: Malformed conditional (${NUMBERS:Onn})
make: Bad modifier ":Onrr" for variable "NUMBERS"
make: "varmod-order-numeric.mk" line 80: Malformed conditional (${NUMBERS:Onrr})
make: Bad modifier ":Orrn" for variable "NUMBERS"
make: "varmod-order-numeric.mk" line 89: Malformed conditional (${NUMBERS:Orrn})
make: Unclosed variable expression, expecting '}' for modifier "O" of variable "NUMBERS" with value "-2G -3m -42 1 1M 1k 3 42 5 5K 7"
make: Unclosed variable expression, expecting '}' for modifier "On" of variable "NUMBERS" with value "-2G -3m -42 1 3 5 7 42 1k 5K 1M"
make: Unclosed variable expression, expecting '}' for modifier "Onr" of variable "NUMBERS" with value "1M 5K 1k 42 7 5 3 1 -42 -3m -2G"
make: Fatal errors encountered -- cannot continue
make: stopped in unit-tests
exit status 1
@


1.2
log
@make: fix typo in manual page, add more tests for the new ':On'
@
text
@d3 10
a12 9
make: Bad modifier ":typo" for variable "NUMBERS"
make: "varmod-order-numeric.mk" line 45: Malformed conditional (${NUMBERS:On_typo})
make: "varmod-order-numeric.mk" line 54: Unknown modifier "_typo"
make: "varmod-order-numeric.mk" line 54: Malformed conditional (${NUMBERS:Onr_typo})
make: "varmod-order-numeric.mk" line 63: Unknown modifier "_typo"
make: "varmod-order-numeric.mk" line 63: Malformed conditional (${NUMBERS:Orn_typo})
make: "varmod-order-numeric.mk" line 75: Missing argument for ".error"
make: "varmod-order-numeric.mk" line 83: Unknown modifier "r"
make: "varmod-order-numeric.mk" line 83: Malformed conditional (${NUMBERS:Onrr})
d14 4
a17 1
make: "varmod-order-numeric.mk" line 94: Malformed conditional (${NUMBERS:Orrn})
@


1.1
log
@Add :On for numeric sort

Reviewed by: christos rillig
@
text
@d1 16
a16 1
exit status 0
@

