Source-Changes archive

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

CVS commit: src



Module Name:    src
Committed By:   rillig
Date:           Fri Jun 17 18:54:53 UTC 2022

Modified Files:
        src/tests/usr.bin/xlint: check-expect.lua
        src/tests/usr.bin/xlint/lint1: c11_generic_expression.c d_c99_init.c
            d_init_array_using_string.c decl.c decl_direct_abstract.c
            decl_enum_c90.c decl_struct_member.c expr_binary.c
            expr_binary_trad.c expr_precedence.c feat_stacktrace.c
            gcc_attribute.c gcc_attribute_aligned.c gcc_attribute_enum.c
            gcc_init_compound_literal.c gcc_stmt_asm.c
            gcc_typeof_after_statement.c init_c90.c lex_char.c lex_integer.c
            lex_integer_binary.c lex_integer_ilp32.c lex_string.c
            lex_wide_char.c lex_wide_string.c msg_005.c msg_031.c msg_034.c
            msg_041.c msg_048.c msg_066.c msg_069.c msg_077.c msg_080.c
            msg_103.c msg_104.c msg_118.c msg_155.c msg_184.c msg_189.c
            msg_193.c msg_211.c msg_232.c msg_249.c msg_250.c msg_251.c
            msg_253.c msg_254.c msg_257.c msg_259.c msg_259_c90.c
            msg_259_ilp32.c msg_265.c msg_283.c msg_289.c msg_312.c msg_333.c
            msg_341.c msg_342.c msg_342.exp msg_343.c msg_344.c msg_345.c
            op_colon.c parse_stmt_error.c parse_stmt_iter_error.c
            parse_type_name.c stmt_for.c stmt_goto.c stmt_if.c
        src/usr.bin/xlint/lint1: README.md

Log Message:
tests/lint: make 'expect+-' comments stricter

Previously, the expectations from these comments were already satisfied
if the expectation occurred somewhere in the actual message from lint.
This meant that the prefix 'error:' or 'warning:' could be omitted from
the 'expect' comment.  These omissions were hard to see in a manual
review.  Now any omissions must be visually marked with '...'.

The test msg_342 now reports its messages properly as being in the file
msg_342.c, rather than msg_341.c.  This had been a copy-and-paste
mistake.


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/tests/usr.bin/xlint/check-expect.lua
cvs rdiff -u -r1.11 -r1.12 \
    src/tests/usr.bin/xlint/lint1/c11_generic_expression.c \
    src/tests/usr.bin/xlint/lint1/msg_249.c
cvs rdiff -u -r1.40 -r1.41 src/tests/usr.bin/xlint/lint1/d_c99_init.c
cvs rdiff -u -r1.10 -r1.11 \
    src/tests/usr.bin/xlint/lint1/d_init_array_using_string.c \
    src/tests/usr.bin/xlint/lint1/gcc_attribute.c \
    src/tests/usr.bin/xlint/lint1/msg_155.c
cvs rdiff -u -r1.16 -r1.17 src/tests/usr.bin/xlint/lint1/decl.c
cvs rdiff -u -r1.6 -r1.7 src/tests/usr.bin/xlint/lint1/decl_direct_abstract.c \
    src/tests/usr.bin/xlint/lint1/msg_343.c
cvs rdiff -u -r1.1 -r1.2 src/tests/usr.bin/xlint/lint1/decl_enum_c90.c \
    src/tests/usr.bin/xlint/lint1/expr_binary_trad.c \
    src/tests/usr.bin/xlint/lint1/lex_integer_binary.c \
    src/tests/usr.bin/xlint/lint1/msg_341.c \
    src/tests/usr.bin/xlint/lint1/msg_344.c \
    src/tests/usr.bin/xlint/lint1/parse_stmt_error.c \
    src/tests/usr.bin/xlint/lint1/parse_stmt_iter_error.c \
    src/tests/usr.bin/xlint/lint1/stmt_goto.c \
    src/tests/usr.bin/xlint/lint1/stmt_if.c
cvs rdiff -u -r1.14 -r1.15 src/tests/usr.bin/xlint/lint1/decl_struct_member.c
cvs rdiff -u -r1.5 -r1.6 src/tests/usr.bin/xlint/lint1/expr_binary.c \
    src/tests/usr.bin/xlint/lint1/gcc_init_compound_literal.c \
    src/tests/usr.bin/xlint/lint1/lex_char.c \
    src/tests/usr.bin/xlint/lint1/msg_034.c \
    src/tests/usr.bin/xlint/lint1/msg_066.c \
    src/tests/usr.bin/xlint/lint1/msg_077.c \
    src/tests/usr.bin/xlint/lint1/msg_118.c \
    src/tests/usr.bin/xlint/lint1/msg_189.c \
    src/tests/usr.bin/xlint/lint1/msg_232.c
cvs rdiff -u -r1.8 -r1.9 src/tests/usr.bin/xlint/lint1/expr_precedence.c \
    src/tests/usr.bin/xlint/lint1/parse_type_name.c
cvs rdiff -u -r1.2 -r1.3 src/tests/usr.bin/xlint/lint1/feat_stacktrace.c \
    src/tests/usr.bin/xlint/lint1/gcc_attribute_aligned.c \
    src/tests/usr.bin/xlint/lint1/gcc_typeof_after_statement.c \
    src/tests/usr.bin/xlint/lint1/lex_wide_char.c \
    src/tests/usr.bin/xlint/lint1/lex_wide_string.c \
    src/tests/usr.bin/xlint/lint1/msg_345.c \
    src/tests/usr.bin/xlint/lint1/op_colon.c \
    src/tests/usr.bin/xlint/lint1/stmt_for.c
cvs rdiff -u -r1.4 -r1.5 src/tests/usr.bin/xlint/lint1/gcc_attribute_enum.c \
    src/tests/usr.bin/xlint/lint1/lex_string.c \
    src/tests/usr.bin/xlint/lint1/msg_005.c \
    src/tests/usr.bin/xlint/lint1/msg_041.c \
    src/tests/usr.bin/xlint/lint1/msg_048.c \
    src/tests/usr.bin/xlint/lint1/msg_080.c \
    src/tests/usr.bin/xlint/lint1/msg_184.c \
    src/tests/usr.bin/xlint/lint1/msg_250.c \
    src/tests/usr.bin/xlint/lint1/msg_265.c \
    src/tests/usr.bin/xlint/lint1/msg_333.c
cvs rdiff -u -r1.3 -r1.4 src/tests/usr.bin/xlint/lint1/gcc_stmt_asm.c \
    src/tests/usr.bin/xlint/lint1/init_c90.c \
    src/tests/usr.bin/xlint/lint1/lex_integer_ilp32.c \
    src/tests/usr.bin/xlint/lint1/msg_069.c \
    src/tests/usr.bin/xlint/lint1/msg_103.c \
    src/tests/usr.bin/xlint/lint1/msg_104.c \
    src/tests/usr.bin/xlint/lint1/msg_211.c \
    src/tests/usr.bin/xlint/lint1/msg_251.c \
    src/tests/usr.bin/xlint/lint1/msg_253.c \
    src/tests/usr.bin/xlint/lint1/msg_254.c \
    src/tests/usr.bin/xlint/lint1/msg_257.c \
    src/tests/usr.bin/xlint/lint1/msg_259_c90.c \
    src/tests/usr.bin/xlint/lint1/msg_283.c \
    src/tests/usr.bin/xlint/lint1/msg_289.c \
    src/tests/usr.bin/xlint/lint1/msg_312.c \
    src/tests/usr.bin/xlint/lint1/msg_342.c \
    src/tests/usr.bin/xlint/lint1/msg_342.exp
cvs rdiff -u -r1.9 -r1.10 src/tests/usr.bin/xlint/lint1/lex_integer.c
cvs rdiff -u -r1.7 -r1.8 src/tests/usr.bin/xlint/lint1/msg_031.c \
    src/tests/usr.bin/xlint/lint1/msg_259_ilp32.c
cvs rdiff -u -r1.18 -r1.19 src/tests/usr.bin/xlint/lint1/msg_193.c
cvs rdiff -u -r1.20 -r1.21 src/tests/usr.bin/xlint/lint1/msg_259.c
cvs rdiff -u -r1.5 -r1.6 src/usr.bin/xlint/lint1/README.md

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