Source-Changes archive

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

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



Module Name:    src
Committed By:   rillig
Date:           Wed Jun 15 20:18:31 UTC 2022

Modified Files:
        src/tests/usr.bin/xlint: check-expect.lua
        src/tests/usr.bin/xlint/lint1: msg_000.c msg_000.exp msg_003.c
            msg_003.exp msg_004.c msg_004.exp msg_006.c msg_006.exp msg_008.c
            msg_008.exp msg_009.c msg_009.exp msg_019.c msg_019.exp msg_029.c
            msg_029.exp msg_031.c msg_031.exp msg_035.c msg_035.exp msg_036.c
            msg_036.exp msg_037.c msg_037.exp msg_050.c msg_050.exp msg_051.c
            msg_051.exp msg_055.c msg_056.c msg_056.exp msg_057.c msg_057.exp
            msg_060.c msg_060.exp msg_061.c msg_061.exp msg_068.c msg_068.exp
            msg_071.c msg_071.exp msg_073.c msg_073.exp msg_074.c msg_074.exp
            msg_075.c msg_075.exp msg_076.c msg_076.exp msg_077.c msg_077.exp
            msg_081.c msg_081.exp msg_082.c msg_082.exp msg_083.c msg_083.exp
            msg_085.c msg_085.exp msg_086.c msg_086.exp msg_087.c msg_087.exp
            msg_088.c msg_088.exp msg_089.c msg_089.exp msg_100.c msg_100.exp
            msg_105.c msg_105.exp msg_106.c msg_106.exp

Log Message:
tests/lint: replace 'expect' comments with 'expect+-' comments

The 'expect+-' comments provide more context, which makes it easier to
read the .c files on their own, without having to look up the actual
diagnostics in the .exp files.

Add tests for messages 105 and 106, which were about the obscure feature
of some traditional C compilers that allowed the expression 'x->member'
to access a struct member, even if 'x' had integer type.

The remaining tests will be migrated in a future commit.


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/tests/usr.bin/xlint/check-expect.lua
cvs rdiff -u -r1.3 -r1.4 src/tests/usr.bin/xlint/lint1/msg_000.c \
    src/tests/usr.bin/xlint/lint1/msg_000.exp \
    src/tests/usr.bin/xlint/lint1/msg_006.exp \
    src/tests/usr.bin/xlint/lint1/msg_008.c \
    src/tests/usr.bin/xlint/lint1/msg_008.exp \
    src/tests/usr.bin/xlint/lint1/msg_009.c \
    src/tests/usr.bin/xlint/lint1/msg_009.exp \
    src/tests/usr.bin/xlint/lint1/msg_029.c \
    src/tests/usr.bin/xlint/lint1/msg_036.c \
    src/tests/usr.bin/xlint/lint1/msg_036.exp \
    src/tests/usr.bin/xlint/lint1/msg_037.c \
    src/tests/usr.bin/xlint/lint1/msg_037.exp \
    src/tests/usr.bin/xlint/lint1/msg_050.c \
    src/tests/usr.bin/xlint/lint1/msg_055.c \
    src/tests/usr.bin/xlint/lint1/msg_056.c \
    src/tests/usr.bin/xlint/lint1/msg_057.exp \
    src/tests/usr.bin/xlint/lint1/msg_060.exp \
    src/tests/usr.bin/xlint/lint1/msg_061.c \
    src/tests/usr.bin/xlint/lint1/msg_061.exp \
    src/tests/usr.bin/xlint/lint1/msg_068.c \
    src/tests/usr.bin/xlint/lint1/msg_071.exp \
    src/tests/usr.bin/xlint/lint1/msg_073.c \
    src/tests/usr.bin/xlint/lint1/msg_073.exp \
    src/tests/usr.bin/xlint/lint1/msg_074.exp \
    src/tests/usr.bin/xlint/lint1/msg_075.c \
    src/tests/usr.bin/xlint/lint1/msg_076.c \
    src/tests/usr.bin/xlint/lint1/msg_076.exp \
    src/tests/usr.bin/xlint/lint1/msg_081.exp \
    src/tests/usr.bin/xlint/lint1/msg_082.exp \
    src/tests/usr.bin/xlint/lint1/msg_083.exp \
    src/tests/usr.bin/xlint/lint1/msg_085.c \
    src/tests/usr.bin/xlint/lint1/msg_086.c \
    src/tests/usr.bin/xlint/lint1/msg_087.c \
    src/tests/usr.bin/xlint/lint1/msg_088.c \
    src/tests/usr.bin/xlint/lint1/msg_089.c \
    src/tests/usr.bin/xlint/lint1/msg_089.exp \
    src/tests/usr.bin/xlint/lint1/msg_100.exp
cvs rdiff -u -r1.4 -r1.5 src/tests/usr.bin/xlint/lint1/msg_003.c \
    src/tests/usr.bin/xlint/lint1/msg_003.exp \
    src/tests/usr.bin/xlint/lint1/msg_004.exp \
    src/tests/usr.bin/xlint/lint1/msg_006.c \
    src/tests/usr.bin/xlint/lint1/msg_019.c \
    src/tests/usr.bin/xlint/lint1/msg_050.exp \
    src/tests/usr.bin/xlint/lint1/msg_051.c \
    src/tests/usr.bin/xlint/lint1/msg_051.exp \
    src/tests/usr.bin/xlint/lint1/msg_057.c \
    src/tests/usr.bin/xlint/lint1/msg_060.c \
    src/tests/usr.bin/xlint/lint1/msg_071.c \
    src/tests/usr.bin/xlint/lint1/msg_074.c \
    src/tests/usr.bin/xlint/lint1/msg_077.c \
    src/tests/usr.bin/xlint/lint1/msg_077.exp \
    src/tests/usr.bin/xlint/lint1/msg_081.c \
    src/tests/usr.bin/xlint/lint1/msg_082.c \
    src/tests/usr.bin/xlint/lint1/msg_083.c \
    src/tests/usr.bin/xlint/lint1/msg_085.exp \
    src/tests/usr.bin/xlint/lint1/msg_100.c
cvs rdiff -u -r1.5 -r1.6 src/tests/usr.bin/xlint/lint1/msg_004.c
cvs rdiff -u -r1.6 -r1.7 src/tests/usr.bin/xlint/lint1/msg_019.exp \
    src/tests/usr.bin/xlint/lint1/msg_031.c
cvs rdiff -u -r1.2 -r1.3 src/tests/usr.bin/xlint/lint1/msg_029.exp \
    src/tests/usr.bin/xlint/lint1/msg_056.exp \
    src/tests/usr.bin/xlint/lint1/msg_068.exp \
    src/tests/usr.bin/xlint/lint1/msg_075.exp \
    src/tests/usr.bin/xlint/lint1/msg_086.exp \
    src/tests/usr.bin/xlint/lint1/msg_087.exp \
    src/tests/usr.bin/xlint/lint1/msg_088.exp \
    src/tests/usr.bin/xlint/lint1/msg_105.c \
    src/tests/usr.bin/xlint/lint1/msg_105.exp \
    src/tests/usr.bin/xlint/lint1/msg_106.c \
    src/tests/usr.bin/xlint/lint1/msg_106.exp
cvs rdiff -u -r1.7 -r1.8 src/tests/usr.bin/xlint/lint1/msg_031.exp
cvs rdiff -u -r1.10 -r1.11 src/tests/usr.bin/xlint/lint1/msg_035.c
cvs rdiff -u -r1.11 -r1.12 src/tests/usr.bin/xlint/lint1/msg_035.exp

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