From a75746d610db0b5f91798124c867489f0a2cacce Mon Sep 17 00:00:00 2001 From: Dale Weiler Date: Wed, 28 Aug 2013 03:34:05 -0400 Subject: [PATCH] Don't ignore empty newlines when match in the testsuite, instead only ignore when procedure type is -pp (i.e preprocessing). --- test.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/test.c b/test.c index 6fdee51..6e6aa0a 100644 --- a/test.c +++ b/test.c @@ -1060,11 +1060,13 @@ static bool task_trymatch(size_t i, char ***line) { } } + /* - * If data is just null now, that means the line was an empty - * one and for that, we just ignore it. + * We need to ignore null lines for when -pp is used (preprocessor), since + * the preprocessor is likely to create empty newlines in certain macro + * instantations, otherwise it's in the wrong nature to ignore empty newlines. */ - if (!*data) + if (!strcmp(tmpl->proceduretype, "-pp") && !*data) continue; if (vec_size(tmpl->comparematch) > compare) { -- 2.39.2