Up to [cvs.NetBSD.org] / src / tests / usr.bin / xlint / lint1
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
tests/lint: remove .exp files, as they have become redundant Now that each lint1 test lists all generated diagnostics as 'expect' comments, the information from the .exp files is no longer needed. The only information that gets lost is the order of the diagnostics, which is mostly relevant for paired messages like 'inconsistent definition' + 'previous definition was here'.
tests/lint: test parsing of octal integer constants
tests/lint: test parsing of integer constants The previous version of this test did not focus on the integer constants but instead on conversions of function arguments. The current test covers several corner cases, such as non-decimal bases and all combinations of suffixes. This test does not cover lex_integer_constant completely since several code paths are only reachable on 32-bit target platforms.
tests/lint: allow skipping individual tests Depending on the platform, some tests do not make sense or produce platform-dependent results. Allow these tests to be marked as such. For example, the test lex_integer.c only works on 64-bit platforms. Therefore it is disabled on i386 for now since it prints different warnings there. Even better would be a "lint1-only-on-lpi32" toggle, but that would need detection of 'sizeof(int)' at runtime.
tests/lint: add test cases for lexical analysis