From d1a9a957ca422c293cf55546da5a13556aab4c0f Mon Sep 17 00:00:00 2001 From: schwarze Date: Sat, 3 Jul 2021 12:04:53 +0000 Subject: [PATCH] fix a bug that resulted in incomplete testing: end statements with ';' because ',' isn't enough --- regress/lib/libc/locale/wcrtomb/test_wcrtomb.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/regress/lib/libc/locale/wcrtomb/test_wcrtomb.c b/regress/lib/libc/locale/wcrtomb/test_wcrtomb.c index 26b21fdd5bf..ee0e14b69d3 100644 --- a/regress/lib/libc/locale/wcrtomb/test_wcrtomb.c +++ b/regress/lib/libc/locale/wcrtomb/test_wcrtomb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: test_wcrtomb.c,v 1.2 2017/07/27 15:08:37 bluhm Exp $ */ +/* $OpenBSD: test_wcrtomb.c,v 1.3 2021/07/03 12:04:53 schwarze Exp $ */ /* * Copyright (c) 2016 Ingo Schwarze * @@ -60,7 +60,7 @@ main(void) onetest("0x100", 0x100, EILSEQ, NULL); if (setlocale(LC_CTYPE, "en_US.UTF-8") == NULL) - errx(1, "setlocale(UTF-8) failed"), + errx(1, "setlocale(UTF-8) failed"); onetest("NUL", L'\0', 0, ""); onetest("BEL", L'\a', 0, "\a"); @@ -72,12 +72,12 @@ main(void) onetest("0xd800", 0xd800, EILSEQ, NULL); if (setlocale(LC_CTYPE, "POSIX") == NULL) - errx(1, "setlocale(POSIX) failed"), + errx(1, "setlocale(POSIX) failed"); onetest("0xff", L'\377', 0, "\377"); if (setlocale(LC_CTYPE, "en_US.UTF-8") == NULL) - errx(1, "second setlocale(UTF-8) failed"), + errx(1, "second setlocale(UTF-8) failed"); onetest("U+13000", 0x13000, 0, "\360\223\200\200"); -- 2.20.1