Source-Changes archive

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

CVS commit: src/tests/usr.bin/xlint/lint1



Module Name:    src
Committed By:   rillig
Date:           Sat Jan 15 14:22:03 UTC 2022

Modified Files:
        src/tests/usr.bin/xlint/lint1: c11_generic_expression.c
            c11_generic_expression.exp c99_init_designator.c
            c99_init_designator.exp d_c99_bool.c d_c99_bool.exp
            d_c99_bool_strict.c d_c99_bool_strict.exp d_c99_complex_split.c
            d_c99_complex_split.exp d_c99_init.c d_c99_init.exp
            d_constant_conv1.c d_constant_conv1.exp d_constant_conv2.c
            d_constant_conv2.exp d_cvt_constant.c d_cvt_constant.exp
            d_decl_old_style_arguments.c d_decl_old_style_arguments.exp
            d_fold_test.c d_fold_test.exp d_gcc_compound_statements1.c
            d_gcc_compound_statements1.exp d_incorrect_array_size.c
            d_incorrect_array_size.exp d_init_array_using_string.c
            d_init_array_using_string.exp d_init_pop_member.c
            d_init_pop_member.exp d_lint_assert.c d_lint_assert.exp
            d_long_double_int.c d_long_double_int.exp d_pr_22119.c
            d_pr_22119.exp d_return_type.c d_return_type.exp
            d_struct_init_nested.c d_struct_init_nested.exp d_type_conv1.c
            d_type_conv1.exp d_type_conv2.c d_type_conv2.exp d_type_conv3.c
            d_type_conv3.exp decl_struct_member.c decl_struct_member.exp emit.c
            emit.exp emit.exp-ln expr_range.c expr_range.exp feat_stacktrace.c
            feat_stacktrace.exp gcc_attribute_aligned.c
            gcc_attribute_aligned.exp gcc_bit_field_types.c
            gcc_bit_field_types.exp lex_floating.c lex_floating.exp op_colon.c
            op_colon.exp stmt_for.c stmt_for.exp

Log Message:
tests/lint: expect complete messages in feature tests

Previously, the tests contained many comments like /* expect: 123 */,
which were useless to a casual reader since nobody is expected to learn
lint's message IDs by heart.  Replace these with the complete
diagnostics, to show what lint is complaining about.

The tests named msg_*.c have been left unmodified since they mention the
full message text in their header comment.

No functional change.


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 \
    src/tests/usr.bin/xlint/lint1/c11_generic_expression.c \
    src/tests/usr.bin/xlint/lint1/decl_struct_member.exp
cvs rdiff -u -r1.8 -r1.9 \
    src/tests/usr.bin/xlint/lint1/c11_generic_expression.exp \
    src/tests/usr.bin/xlint/lint1/d_c99_complex_split.c \
    src/tests/usr.bin/xlint/lint1/d_init_array_using_string.exp \
    src/tests/usr.bin/xlint/lint1/d_init_pop_member.c \
    src/tests/usr.bin/xlint/lint1/d_struct_init_nested.exp
cvs rdiff -u -r1.1 -r1.2 src/tests/usr.bin/xlint/lint1/c99_init_designator.c \
    src/tests/usr.bin/xlint/lint1/c99_init_designator.exp \
    src/tests/usr.bin/xlint/lint1/emit.exp \
    src/tests/usr.bin/xlint/lint1/expr_range.exp \
    src/tests/usr.bin/xlint/lint1/feat_stacktrace.c \
    src/tests/usr.bin/xlint/lint1/feat_stacktrace.exp \
    src/tests/usr.bin/xlint/lint1/gcc_attribute_aligned.c \
    src/tests/usr.bin/xlint/lint1/gcc_attribute_aligned.exp \
    src/tests/usr.bin/xlint/lint1/lex_floating.c \
    src/tests/usr.bin/xlint/lint1/lex_floating.exp \
    src/tests/usr.bin/xlint/lint1/op_colon.c \
    src/tests/usr.bin/xlint/lint1/op_colon.exp \
    src/tests/usr.bin/xlint/lint1/stmt_for.c \
    src/tests/usr.bin/xlint/lint1/stmt_for.exp
cvs rdiff -u -r1.7 -r1.8 src/tests/usr.bin/xlint/lint1/d_c99_bool.c \
    src/tests/usr.bin/xlint/lint1/d_init_pop_member.exp
cvs rdiff -u -r1.6 -r1.7 src/tests/usr.bin/xlint/lint1/d_c99_bool.exp \
    src/tests/usr.bin/xlint/lint1/d_gcc_compound_statements1.c \
    src/tests/usr.bin/xlint/lint1/d_struct_init_nested.c
cvs rdiff -u -r1.35 -r1.36 src/tests/usr.bin/xlint/lint1/d_c99_bool_strict.c
cvs rdiff -u -r1.32 -r1.33 \
    src/tests/usr.bin/xlint/lint1/d_c99_bool_strict.exp
cvs rdiff -u -r1.2 -r1.3 \
    src/tests/usr.bin/xlint/lint1/d_c99_complex_split.exp \
    src/tests/usr.bin/xlint/lint1/d_constant_conv1.exp \
    src/tests/usr.bin/xlint/lint1/d_gcc_compound_statements1.exp \
    src/tests/usr.bin/xlint/lint1/d_pr_22119.c \
    src/tests/usr.bin/xlint/lint1/d_return_type.exp
cvs rdiff -u -r1.39 -r1.40 src/tests/usr.bin/xlint/lint1/d_c99_init.c
cvs rdiff -u -r1.29 -r1.30 src/tests/usr.bin/xlint/lint1/d_c99_init.exp
cvs rdiff -u -r1.3 -r1.4 src/tests/usr.bin/xlint/lint1/d_constant_conv1.c \
    src/tests/usr.bin/xlint/lint1/d_constant_conv2.c \
    src/tests/usr.bin/xlint/lint1/d_decl_old_style_arguments.c \
    src/tests/usr.bin/xlint/lint1/d_decl_old_style_arguments.exp \
    src/tests/usr.bin/xlint/lint1/d_incorrect_array_size.c \
    src/tests/usr.bin/xlint/lint1/d_incorrect_array_size.exp \
    src/tests/usr.bin/xlint/lint1/d_pr_22119.exp \
    src/tests/usr.bin/xlint/lint1/d_return_type.c \
    src/tests/usr.bin/xlint/lint1/d_type_conv1.c \
    src/tests/usr.bin/xlint/lint1/d_type_conv2.c \
    src/tests/usr.bin/xlint/lint1/expr_range.c \
    src/tests/usr.bin/xlint/lint1/gcc_bit_field_types.exp
cvs rdiff -u -r1.5 -r1.6 src/tests/usr.bin/xlint/lint1/d_constant_conv2.exp \
    src/tests/usr.bin/xlint/lint1/d_cvt_constant.c \
    src/tests/usr.bin/xlint/lint1/d_cvt_constant.exp \
    src/tests/usr.bin/xlint/lint1/d_fold_test.exp \
    src/tests/usr.bin/xlint/lint1/d_long_double_int.exp \
    src/tests/usr.bin/xlint/lint1/d_type_conv1.exp \
    src/tests/usr.bin/xlint/lint1/d_type_conv2.exp \
    src/tests/usr.bin/xlint/lint1/d_type_conv3.exp \
    src/tests/usr.bin/xlint/lint1/gcc_bit_field_types.c
cvs rdiff -u -r1.4 -r1.5 src/tests/usr.bin/xlint/lint1/d_fold_test.c \
    src/tests/usr.bin/xlint/lint1/d_lint_assert.c \
    src/tests/usr.bin/xlint/lint1/d_lint_assert.exp \
    src/tests/usr.bin/xlint/lint1/d_long_double_int.c \
    src/tests/usr.bin/xlint/lint1/d_type_conv3.c
cvs rdiff -u -r1.9 -r1.10 \
    src/tests/usr.bin/xlint/lint1/d_init_array_using_string.c \
    src/tests/usr.bin/xlint/lint1/emit.c \
    src/tests/usr.bin/xlint/lint1/emit.exp-ln
cvs rdiff -u -r1.13 -r1.14 src/tests/usr.bin/xlint/lint1/decl_struct_member.c

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