Fri Oct 23 05:44:02 2020 UTC ()
make(1): add test for MAKE_PRINT_VAR_ON_ERROR


(rillig)
diff -r1.1 -r1.2 src/usr.bin/make/unit-tests/varname-make_print_var_on_error.exp
diff -r1.2 -r1.3 src/usr.bin/make/unit-tests/varname-make_print_var_on_error.mk

cvs diff -r1.1 -r1.2 src/usr.bin/make/unit-tests/varname-make_print_var_on_error.exp (expand / switch to unified diff)

--- src/usr.bin/make/unit-tests/varname-make_print_var_on_error.exp 2020/08/16 12:07:52 1.1
+++ src/usr.bin/make/unit-tests/varname-make_print_var_on_error.exp 2020/10/23 05:44:02 1.2

cvs diff -r1.2 -r1.3 src/usr.bin/make/unit-tests/varname-make_print_var_on_error.mk (expand / switch to unified diff)

--- src/usr.bin/make/unit-tests/varname-make_print_var_on_error.mk 2020/08/16 14:25:16 1.2
+++ src/usr.bin/make/unit-tests/varname-make_print_var_on_error.mk 2020/10/23 05:44:02 1.3
@@ -1,8 +1,15 @@ @@ -1,8 +1,15 @@
1# $NetBSD: varname-make_print_var_on_error.mk,v 1.2 2020/08/16 14:25:16 rillig Exp $ 1# $NetBSD: varname-make_print_var_on_error.mk,v 1.3 2020/10/23 05:44:02 rillig Exp $
2# 2#
3# Tests for the special .MAKE.PRINT_VAR_ON_ERROR variable. 3# Tests for the special MAKE_PRINT_VAR_ON_ERROR variable, which prints the
 4# values of selected variables on error.
4 5
5# TODO: Implementation 6MAKE_PRINT_VAR_ON_ERROR= .ERROR_TARGET .ERROR_CMD
6 7
7all: 8all:
8 @:; 9 @: command before
 10 @echo fail; false
 11 @: command after
 12
 13# XXX: As of 2020-10-23, the .ERROR_CMD variable seems pointless since at
 14# that point, the first command in gn->commands has been set to NULL already.
 15# And because of this, .ERROR_CMD stays an empty list.