validation/{phase2/backslash,phase3/comments} are two ancient testcases that predate ./test-suite and they are ignored by the testsuite because they do not have a .c extension. Change this by: - renaming them with a .c - moving them to validation/preprocessor/ - adding the testsuite tags & results to them - remove comments about their previous status Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@xxxxxxxxx> --- .../phase2-backslash.c} | 29 +++++++++++-------- .../phase3-comments.c} | 12 ++++++-- 2 files changed, 27 insertions(+), 14 deletions(-) rename validation/{phase2/backslash => preprocessor/phase2-backslash.c} (75%) rename validation/{phase3/comments => preprocessor/phase3-comments.c} (51%) diff --git a/validation/phase2/backslash b/validation/preprocessor/phase2-backslash.c similarity index 75% rename from validation/phase2/backslash rename to validation/preprocessor/phase2-backslash.c index 29c85b4d0..21d94d7dc 100644 --- a/validation/phase2/backslash +++ b/validation/preprocessor/phase2-backslash.c @@ -17,11 +17,26 @@ * the rest of tokenizer. */ +/* + * check-name: phase2-backslash + * check-command: sparse -E $file + * + * check-output-start + +"\a" +1 +D +'\a' + * check-output-end + * + * check-error-start +preprocessor/phase2-backslash.c:68:0: warning: backslash-newline at end of file + * check-error-end + */ + #define A(x) #x #define B(x) A(x) /* This should result in "\a" */ -/* XXX: currently sparse produces "a" */ -/* Partially fixed: now it gives "\\a", which is a separate problem */ B(\a) #define C\ @@ -32,31 +47,21 @@ C #define D\ 1 /* And this should give D, since '\n' is removed and we get no whitespace */ -/* XXX: currently sparse produces 1 */ -/* Fixed */ D #define E '\\ a' /* This should give '\a' - with no warnings issued */ -/* XXX: currently sparse complains a lot and ends up producing a */ -/* Fixed */ E /* This should give nothing */ -/* XXX: currently sparse produces more junk */ -/* Fixed */ // junk \ more junk /* This should also give nothing */ -/* XXX: currently sparse produces / * comment * / */ -/* Fixed */ /\ * comment *\ / /* And this should complain since final newline should not be eaten by '\\' */ -/* XXX: currently sparse does not notice */ -/* Fixed */ \ diff --git a/validation/phase3/comments b/validation/preprocessor/phase3-comments.c similarity index 51% rename from validation/phase3/comments rename to validation/preprocessor/phase3-comments.c index 8f51a307b..7106b480a 100644 --- a/validation/phase3/comments +++ b/validation/preprocessor/phase3-comments.c @@ -3,7 +3,15 @@ */ /* This should give nothing */ -/* XXX: currently sparse produces Y */ -/* Fixed */ #define X /* */ Y + +/* + * check-name: phase3-comments + * check-command: sparse -E $file + * + * check-output-start + + + * check-output-end + */ -- 2.17.0 -- To unsubscribe from this list: send the line "unsubscribe linux-sparse" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html