History log of /netbsd-current/usr.bin/make/unit-tests/varname-empty.mk
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.10 19-Nov-2023 rillig

tests/make: replace 'variable expression' with 'expression'

Each expression is based on a variable, there's no need for the
verbosity. The wording in make's diagnostics will be changed in a
follow-up commit.


Revision tags: netbsd-10-0-RC1 netbsd-10-base cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1 cjep_staticlib_x-base
# 1.9 04-Apr-2021 rillig

make: remove filler word 'Do' from function names for parsing

No functional change, except for debug logging.


# 1.8 03-Feb-2021 rillig

make: in the test varname-empty, keep more debug output

Filtering out the interesting lines based on the very specific pattern
"Var_Set" was surprising.


# 1.7 23-Oct-2020 rillig

make(1): add tests for the variable named ""


# 1.6 24-Sep-2020 rillig

make(1): extend documentation in the varname-empty test


# 1.5 22-Aug-2020 rillig

make(1): try to set the variable named "" using the command line

Before 2020-08-22, the command line argument '=cmline-plain' triggered
undefined behavior, just like the assignment '=assigned' in the Makefile.


# 1.4 22-Aug-2020 rillig

make(1): fix undefined behavior when assigning to variable ""

Using a programming language with built-in array bounds checks would
have prevented this bug, and many others as well.


# 1.3 22-Aug-2020 rillig

make(1): try a bit harder to set the variable with the empty name

There is not only the != assignment operator, but a few others as well.
Especially the += operator is interesting since it has a different code
path. But all is good.


# 1.2 22-Aug-2020 rillig

make(1): prevent assignment to the variable with the empty name


# 1.1 22-Aug-2020 rillig

make(1): add test for assigning to the variable named ""

This has been possible at least since 2013, probably much longer.


# 1.9 04-Apr-2021 rillig

make: remove filler word 'Do' from function names for parsing

No functional change, except for debug logging.


# 1.8 03-Feb-2021 rillig

make: in the test varname-empty, keep more debug output

Filtering out the interesting lines based on the very specific pattern
"Var_Set" was surprising.


# 1.7 23-Oct-2020 rillig

make(1): add tests for the variable named ""


# 1.6 24-Sep-2020 rillig

make(1): extend documentation in the varname-empty test


# 1.5 22-Aug-2020 rillig

make(1): try to set the variable named "" using the command line

Before 2020-08-22, the command line argument '=cmline-plain' triggered
undefined behavior, just like the assignment '=assigned' in the Makefile.


# 1.4 22-Aug-2020 rillig

make(1): fix undefined behavior when assigning to variable ""

Using a programming language with built-in array bounds checks would
have prevented this bug, and many others as well.


# 1.3 22-Aug-2020 rillig

make(1): try a bit harder to set the variable with the empty name

There is not only the != assignment operator, but a few others as well.
Especially the += operator is interesting since it has a different code
path. But all is good.


# 1.2 22-Aug-2020 rillig

make(1): prevent assignment to the variable with the empty name


# 1.1 22-Aug-2020 rillig

make(1): add test for assigning to the variable named ""

This has been possible at least since 2013, probably much longer.


# 1.8 03-Feb-2021 rillig

make: in the test varname-empty, keep more debug output

Filtering out the interesting lines based on the very specific pattern
"Var_Set" was surprising.


# 1.7 23-Oct-2020 rillig

make(1): add tests for the variable named ""


# 1.6 24-Sep-2020 rillig

make(1): extend documentation in the varname-empty test


# 1.5 22-Aug-2020 rillig

make(1): try to set the variable named "" using the command line

Before 2020-08-22, the command line argument '=cmline-plain' triggered
undefined behavior, just like the assignment '=assigned' in the Makefile.


# 1.4 22-Aug-2020 rillig

make(1): fix undefined behavior when assigning to variable ""

Using a programming language with built-in array bounds checks would
have prevented this bug, and many others as well.


# 1.3 22-Aug-2020 rillig

make(1): try a bit harder to set the variable with the empty name

There is not only the != assignment operator, but a few others as well.
Especially the += operator is interesting since it has a different code
path. But all is good.


# 1.2 22-Aug-2020 rillig

make(1): prevent assignment to the variable with the empty name


# 1.1 22-Aug-2020 rillig

make(1): add test for assigning to the variable named ""

This has been possible at least since 2013, probably much longer.


# 1.7 23-Oct-2020 rillig

make(1): add tests for the variable named ""


# 1.6 24-Sep-2020 rillig

make(1): extend documentation in the varname-empty test


# 1.5 22-Aug-2020 rillig

make(1): try to set the variable named "" using the command line

Before 2020-08-22, the command line argument '=cmline-plain' triggered
undefined behavior, just like the assignment '=assigned' in the Makefile.


# 1.4 22-Aug-2020 rillig

make(1): fix undefined behavior when assigning to variable ""

Using a programming language with built-in array bounds checks would
have prevented this bug, and many others as well.


# 1.3 22-Aug-2020 rillig

make(1): try a bit harder to set the variable with the empty name

There is not only the != assignment operator, but a few others as well.
Especially the += operator is interesting since it has a different code
path. But all is good.


# 1.2 22-Aug-2020 rillig

make(1): prevent assignment to the variable with the empty name


# 1.1 22-Aug-2020 rillig

make(1): add test for assigning to the variable named ""

This has been possible at least since 2013, probably much longer.