]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/bmake/unit-tests/unexport.mk
Update to bmake-20201101
[FreeBSD/FreeBSD.git] / contrib / bmake / unit-tests / unexport.mk
1 # $NetBSD: unexport.mk,v 1.5 2020/10/24 08:50:17 rillig Exp $
2
3 # pick up a bunch of exported vars
4 FILTER_CMD=     grep ^UT_
5 .include "export.mk"
6
7 .unexport UT_ZOO UT_FOO
8
9 UT_TEST=        unexport
10
11 # Until 2020-08-08, Var_UnExport had special handling for '\n', that code
12 # was not reachable though.  At that point, backslash-newline has already
13 # been replaced with a simple space, and variables are not yet expanded.
14 UT_BEFORE_NL=   before
15 UT_AFTER_NL=    after
16 .export UT_BEFORE_NL UT_AFTER_NL
17 .unexport \
18   UT_BEFORE_NL
19 .unexport ${.newline} UT_AFTER_NL