The NetBSD Project

CVS log for src/usr.bin/make/unit-tests/var-recursive.exp

[BACK] Up to [cvs.NetBSD.org] / src / usr.bin / make / unit-tests

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.7 / (download) - annotate - [select for diffs], Sun Jan 7 01:33:57 2024 UTC (7 weeks, 1 day ago) by sjg
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +4 -4 lines
Diff to previous 1.6 (colored)

make: more consistent error messages

Move %s: progname from Job_CheckCommands to Fatal
to avoid is being repeated when Job_CheckCommands is passed Error.

This means some errors from var also report progname (and level)
which is useful.

Reviewed by: rillig

Revision 1.6 / (download) - annotate - [select for diffs], Thu Jun 1 20:56:35 2023 UTC (8 months, 3 weeks ago) by rillig
Branch: MAIN
Changes since 1.5: +6 -6 lines
Diff to previous 1.5 (colored)

tests/make: force line-based diagnostics to be listed in the tests

This way, contradictions between the intended output and the actual
output are closer together and have a better chance of being spotted.

Revision 1.5 / (download) - annotate - [select for diffs], Sat Jan 29 10:19:49 2022 UTC (2 years ago) by rillig
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10
Changes since 1.4: +1 -1 lines
Diff to previous 1.4 (colored)

make: for recursive variables in commands, print location

Print the approximate location based on the last command that has been
defined for the target.  It would be possible to get more detailed
location information by counting the number of commands of the target,
but that would get messy due to .USEBEFORE, .USE and .DEFAULT, and
still, this is an edge case, so don't waste too much code for it now.
Having this hint about the location is more helpful than just a plain
"Variable X is recursive" without any further details.

Revision 1.4 / (download) - annotate - [select for diffs], Sat Jan 29 10:09:37 2022 UTC (2 years ago) by rillig
Branch: MAIN
Changes since 1.3: +4 -0 lines
Diff to previous 1.3 (colored)

tests/make: demonstrate recursive variable in target

Revision 1.3 / (download) - annotate - [select for diffs], Sat Jan 29 09:38:27 2022 UTC (2 years ago) by rillig
Branch: MAIN
Changes since 1.2: +3 -0 lines
Diff to previous 1.2 (colored)

make: print stack trace on fatal errors

The only fatal error that occurs while the makefiles are read in is the
one about recursive variables, which didn't give any hint about the
location before.

If a recursive variable is detected while evaluating the commands of a
target to be made, there is no location information, as before.

Revision 1.2 / (download) - annotate - [select for diffs], Sat Oct 31 13:45:00 2020 UTC (3 years, 3 months ago) by rillig
Branch: MAIN
CVS Tags: cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Changes since 1.1: +3 -0 lines
Diff to previous 1.1 (colored)

make(1): add test for recursion detection with short variable names

Revision 1.1 / (download) - annotate - [select for diffs], Sat Oct 31 11:30:57 2020 UTC (3 years, 3 months ago) by rillig
Branch: MAIN

make(1): add test for recursive variable expressions

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>