The NetBSD Project

CVS log for src/tests/usr.bin/xlint/lint1/lex_integer_ilp32.c

[BACK] Up to [cvs.NetBSD.org] / src / tests / usr.bin / xlint / lint1

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.9 / (download) - annotate - [select for diffs], Sun Jan 28 06:57:41 2024 UTC (4 weeks, 5 days ago) by rillig
Branch: MAIN
CVS Tags: HEAD
Changes since 1.8: +3 -4 lines
Diff to previous 1.8 (colored)

tests/lint: fix tests for integer constants on ILP32 platforms

The comment in msg_218 was both off-topic and wrong, so remove it.

Revision 1.8 / (download) - annotate - [select for diffs], Tue Mar 28 14:44:34 2023 UTC (11 months ago) by rillig
Branch: MAIN
Changes since 1.7: +2 -1 lines
Diff to previous 1.7 (colored)

lint: warn about extern declarations outside headers

https://mail-index.netbsd.org/tech-userlevel/2023/03/15/msg013727.html

Revision 1.7 / (download) - annotate - [select for diffs], Sun Feb 19 11:50:29 2023 UTC (12 months, 1 week ago) by rillig
Branch: MAIN
Changes since 1.6: +1 -2 lines
Diff to previous 1.6 (colored)

tests/lint: fix and extend tests for C90 migration warning

Revision 1.6 / (download) - annotate - [select for diffs], Sun Feb 5 12:25:11 2023 UTC (12 months, 3 weeks ago) by rillig
Branch: MAIN
Changes since 1.5: +5 -1 lines
Diff to previous 1.5 (colored)

tests/lint: remove redundant tests

The names of the tests were misleading: 'recursive' should have been
'nested', and the interesting topic in the 'cast' tests was not the cast
but the pointer dereference.

Revision 1.5 / (download) - annotate - [select for diffs], Wed Jun 22 19:23:18 2022 UTC (20 months, 1 week ago) by rillig
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10
Changes since 1.4: +2 -2 lines
Diff to previous 1.4 (colored)

lint: add quotes around placeholders for the remaining messages

Reword some of the messages slightly, exchanging brevity for clarity.

Message 138 is kept as-is, as it is not yet covered by any tests.

Message 240 is kep as-is, as it is unreachable.

Revision 1.4 / (download) - annotate - [select for diffs], Fri Jun 17 18:54:53 2022 UTC (20 months, 2 weeks ago) by rillig
Branch: MAIN
Changes since 1.3: +5 -5 lines
Diff to previous 1.3 (colored)

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.

Revision 1.3 / (download) - annotate - [select for diffs], Sat Aug 21 11:50:57 2021 UTC (2 years, 6 months ago) by rillig
Branch: MAIN
Changes since 1.2: +2 -2 lines
Diff to previous 1.2 (colored)

tests/lint: guard against typos in test environment configuration

Some tests had "lint1-only-if" without a trailing colon, others included
the trailing colon.  The tests that included the trailing colon were run
even though they were supposed to be skipped, and they failed, as could
be expected.

To prevent further typos, always require the trailing colon, just as in
"lint1-flags" and fail fast on unknown "lint1" comments.

Revision 1.2 / (download) - annotate - [select for diffs], Tue Jun 29 13:58:13 2021 UTC (2 years, 8 months ago) by rillig
Branch: MAIN
Changes since 1.1: +2 -2 lines
Diff to previous 1.1 (colored)

tests/lint: add test that only runs where char == unsigned char

There a 4 regular NetBSD builds where lint is activated.  All these
builds run on platforms where char == signed char.

The official test runs from https://releng.netbsd.org/test-results.html
mostly have char == signed char as well.

However, lint behaves differently on platforms with char == unsigned
char.  On these platforms, a simple "char ch = '\xff'" leads to the
bogus warning that "conversion of 'int' to 'char' is out of range".

Revision 1.1 / (download) - annotate - [select for diffs], Tue Jun 29 09:19:17 2021 UTC (2 years, 8 months ago) by rillig
Branch: MAIN

tests/lint: add tests for ILP32 platforms

Previously, all tests for lint had to produce the exact same output, no
matter which platform they ran on.  This differs from practical needs
since lint is intended to produce different results depending on whether
the platform is ILP32 or LP64.

Examples for these are type conversions and the widths of the integer
types during lexical analysis.

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>