The NetBSD Project

CVS log for src/usr.bin/make/unit-tests/var-scope-local.mk

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.5 / (download) - annotate - [select for diffs], Wed Feb 9 21:09:24 2022 UTC (11 months, 4 weeks ago) by rillig
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10, HEAD
Changes since 1.4: +22 -15 lines
Diff to previous 1.4 (colored)

make: fix mistakes, spelling and typos in comments and manual page

No binary change for -DNDEBUG.

Revision 1.4 / (download) - annotate - [select for diffs], Sat Feb 5 10:41:15 2022 UTC (12 months ago) by rillig
Branch: MAIN
Changes since 1.3: +30 -1 lines
Diff to previous 1.3 (colored)

tests/make: document and try to reproduce the crash in Parse_IsVar

Fixed in parse.c 1.662 from today.  To actually crash make, the end of
the expanded dependency line must be at the end of a mapped region.
There is no guaranteed crash, as this depends on the memory allocator.
NetBSD's jemalloc allocates large contiguous regions, making it less
likely for an allocation to end up at the end of a mapped region.  The
memory allocators used by FreeBSD and OpenBSD are better at detecting
such bugs.

Revision 1.3 / (download) - annotate - [select for diffs], Sat Jan 29 00:52:53 2022 UTC (12 months, 1 week ago) by rillig
Branch: MAIN
Changes since 1.2: +164 -32 lines
Diff to previous 1.2 (colored)

tests/make: extend and isolate tests for target-local variables

Reusing the target var-scope-local.o for several tests made the test
more difficult to understand than necessary.  The test names '2' and '3'
didn't convey any meaning.

Instead, add more test targets that are named after what they test.  Add
tests for each of the 5 variable assignment operators, to demonstrate an
inconsistency between '+=' and '?='.

Add tests for the built-in target-local variables as well and explain
the general concepts, in particular the exact point where target-local
expressions are expanded.

The lines in the expected output file are not generated in the same
order as they appear in the makefile, so allow the 'expect' lines in
non-linear order, in check-expect.lua.

Revision 1.2 / (download) - annotate - [select for diffs], Thu Jan 27 06:56:27 2022 UTC (12 months, 1 week ago) by sjg
Branch: MAIN
Changes since 1.1: +28 -5 lines
Diff to previous 1.1 (colored)

Unit test for local variables

Revision 1.1 / (download) - annotate - [select for diffs], Sun Jan 23 16:25:54 2022 UTC (12 months, 2 weeks ago) by rillig
Branch: MAIN

tests/make: rename var-class to var-scope

There is no such concept as a "variable class" in make, these tests
focus on the variable scope instead.

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>