Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/usr.bin/make/unit-tests



Module Name:    src
Committed By:   rillig
Date:           Sat Dec 19 12:40:01 UTC 2020

Modified Files:
        src/usr.bin/make/unit-tests: directive-for-lines.exp
            directive-for-lines.mk directive-info.exp directive-info.mk

Log Message:
make(1): add test for backslash continuation lines in .for loops

This ensures that the line numbers for messages are the expected onces
in .for loops.

While experimenting with the backslash continuation lines, I noticed
that the reported line numbers for these are based on the number of
completely parsed physical lines, which nicely cancels out the + 1 that
has to be added for producing human-readable 1-based line numbers.  It
would be more correct to report the parse errors on the first affected
line.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/usr.bin/make/unit-tests/directive-for-lines.exp \
    src/usr.bin/make/unit-tests/directive-for-lines.mk
cvs rdiff -u -r1.4 -r1.5 src/usr.bin/make/unit-tests/directive-info.exp
cvs rdiff -u -r1.6 -r1.7 src/usr.bin/make/unit-tests/directive-info.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index