From 273bae0b161ef70c1e588387348efd950fef6cea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dag-Erling=20Sm=C3=B8rgrav?= Date: Tue, 28 Oct 2014 17:50:17 +0000 Subject: [PATCH] Oops - the line count is incremented by the line continuation, not by the word that precedes it. git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@837 185d5e19-27fe-0310-9dcf-9bff6b9f3609 --- t/t_openpam_readword.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/t/t_openpam_readword.c b/t/t_openpam_readword.c index 4596a2a..9d125be 100644 --- a/t/t_openpam_readword.c +++ b/t/t_openpam_readword.c @@ -897,8 +897,8 @@ T_FUNC(line_continuation_within_whitespace, "line continuation within whitespace tf = t_fopen(NULL); t_fprintf(tf, "hello \\\n world\n"); t_frewind(tf); - ret = orw_expect(tf, "hello", 1 /*lines*/, 0 /*eof*/, 0 /*eol*/) && - orw_expect(tf, "world", 0 /*lines*/, 0 /*eof*/, 1 /*eol*/); + ret = orw_expect(tf, "hello", 0 /*lines*/, 0 /*eof*/, 0 /*eol*/) && + orw_expect(tf, "world", 1 /*lines*/, 0 /*eof*/, 1 /*eol*/); t_fclose(tf); return (ret); }