From: René Scharfe Date: Mon, 1 May 2023 19:51:57 +0000 (+0200) Subject: test-ctype: check EOF X-Git-Tag: v2.41.0-rc0~34^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=31885f64e96e172cc03506f875fb535172a27c05;p=thirdparty%2Fgit.git test-ctype: check EOF The character classifiers are supposed to allow passing EOF to them, a negative value. It isn't part of any character class. Extend the tests to cover that. Signed-off-by: René Scharfe Signed-off-by: Junio C Hamano --- diff --git a/t/helper/test-ctype.c b/t/helper/test-ctype.c index b21bd672d9..c8a0363ba2 100644 --- a/t/helper/test-ctype.c +++ b/t/helper/test-ctype.c @@ -28,6 +28,8 @@ static int is_in(const char *s, int ch) if (is_in(s, i) != t(i)) \ report_error(#t, i); \ } \ + if (t(EOF)) \ + report_error(#t, EOF); \ } #define DIGIT "0123456789"