Module Name: src Committed By: rillig Date: Mon Oct 18 19:36:30 UTC 2021
Modified Files: src/distrib/sets/lists/tests: mi src/tests/usr.bin/indent: Makefile t_options.sh Added Files: src/tests/usr.bin/indent: token_comment.c Removed Files: src/tests/usr.bin/indent: comment-line-end.0 comment-line-end.0.stdout comments.0 comments.0.pro comments.0.stdout token-comment.0 token-comment.0.pro token-comment.0.stdout Log Message: tests/indent: consolidate tests for comments These tests have been the motivation for t_options.sh, which allows to run indent with various command line options on the same input, without having to create 3 files per test case. A test file actually contains several tests, all separated by '#indent' directives. Isolating each of these tests is simpler than having to pick up the corresponding sections from 3 separate files. Running indent on each small test case isolates the test cases from each other, preventing them to influence later test cases. Exactly this had happened when support for C99 comments was added in March 2021, which later turned out to be done wrong. To generate a diff of this commit: cvs rdiff -u -r1.1142 -r1.1143 src/distrib/sets/lists/tests/mi cvs rdiff -u -r1.17 -r1.18 src/tests/usr.bin/indent/Makefile cvs rdiff -u -r1.8 -r0 src/tests/usr.bin/indent/comment-line-end.0 cvs rdiff -u -r1.9 -r0 src/tests/usr.bin/indent/comment-line-end.0.stdout cvs rdiff -u -r1.3 -r0 src/tests/usr.bin/indent/comments.0 \ src/tests/usr.bin/indent/comments.0.stdout cvs rdiff -u -r1.1 -r0 src/tests/usr.bin/indent/comments.0.pro cvs rdiff -u -r1.6 -r1.7 src/tests/usr.bin/indent/t_options.sh cvs rdiff -u -r1.12 -r0 src/tests/usr.bin/indent/token-comment.0 cvs rdiff -u -r1.2 -r0 src/tests/usr.bin/indent/token-comment.0.pro cvs rdiff -u -r1.14 -r0 src/tests/usr.bin/indent/token-comment.0.stdout cvs rdiff -u -r0 -r1.1 src/tests/usr.bin/indent/token_comment.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.