From e11b2dc91aab6bc54d54c61b141471abd866d596 Mon Sep 17 00:00:00 2001 From: schwarze <> Date: Sat, 3 Jul 2021 12:04:53 +0000 Subject: fix a bug that resulted in incomplete testing: end statements with ';' because ',' isn't enough --- src/regress/lib/libc/locale/wcrtomb/test_wcrtomb.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/regress/lib/libc/locale/wcrtomb/test_wcrtomb.c b/src/regress/lib/libc/locale/wcrtomb/test_wcrtomb.c index 26b21fdd5b..ee0e14b69d 100644 --- a/src/regress/lib/libc/locale/wcrtomb/test_wcrtomb.c +++ b/src/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"); -- cgit v1.2.3-55-g6feb