diff options
Diffstat (limited to 'src/regress/lib/libc')
| -rw-r--r-- | src/regress/lib/libc/locale/uselocale/uselocale.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/regress/lib/libc/locale/uselocale/uselocale.c b/src/regress/lib/libc/locale/uselocale/uselocale.c index eb0a0025a9..6d174b232c 100644 --- a/src/regress/lib/libc/locale/uselocale/uselocale.c +++ b/src/regress/lib/libc/locale/uselocale/uselocale.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: uselocale.c,v 1.7 2022/07/25 15:29:21 schwarze Exp $ */ | 1 | /* $OpenBSD: uselocale.c,v 1.8 2022/07/25 21:29:16 guenther Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Copyright (c) 2017, 2022 Ingo Schwarze <schwarze@openbsd.org> | 3 | * Copyright (c) 2017, 2022 Ingo Schwarze <schwarze@openbsd.org> |
| 4 | * | 4 | * |
| @@ -315,8 +315,6 @@ child_func(void *arg) | |||
| 315 | wctyc = wctype_l("upper", _LOCALE_C); | 315 | wctyc = wctype_l("upper", _LOCALE_C); |
| 316 | if (wctyc == NULL) | 316 | if (wctyc == NULL) |
| 317 | errx(1, "wctype_l(upper, C) == NULL"); | 317 | errx(1, "wctype_l(upper, C) == NULL"); |
| 318 | if (wctyg == wctyc) | ||
| 319 | errx(1, "wctype global == C"); | ||
| 320 | TEST_R(iswctype, 1, 0x00D0, wctyg); /* Eth */ | 318 | TEST_R(iswctype, 1, 0x00D0, wctyg); /* Eth */ |
| 321 | TEST_R(iswctype_l, 1, 0x00D0, wctyu, _LOCALE_UTF8); | 319 | TEST_R(iswctype_l, 1, 0x00D0, wctyu, _LOCALE_UTF8); |
| 322 | TEST_R(iswctype_l, 0, 0x00D0, wctyc, _LOCALE_C); | 320 | TEST_R(iswctype_l, 0, 0x00D0, wctyc, _LOCALE_C); |
| @@ -337,8 +335,6 @@ child_func(void *arg) | |||
| 337 | wctrc = wctrans_l("tolower", _LOCALE_C); | 335 | wctrc = wctrans_l("tolower", _LOCALE_C); |
| 338 | if (wctrc == NULL) | 336 | if (wctrc == NULL) |
| 339 | errx(1, "wctrans(tolower, C) == NULL"); | 337 | errx(1, "wctrans(tolower, C) == NULL"); |
| 340 | if (wctrg == wctrc) | ||
| 341 | errx(1, "wctrans global == C"); | ||
| 342 | TEST_R(towctrans, 0x00FE, 0x00DE, wctrg); /* Thorn */ | 338 | TEST_R(towctrans, 0x00FE, 0x00DE, wctrg); /* Thorn */ |
| 343 | TEST_R(towctrans_l, 0x00FE, 0x00DE, wctru, _LOCALE_UTF8); | 339 | TEST_R(towctrans_l, 0x00FE, 0x00DE, wctru, _LOCALE_UTF8); |
| 344 | TEST_R(towctrans_l, 0x00DE, 0x00DE, wctrc, _LOCALE_C); | 340 | TEST_R(towctrans_l, 0x00DE, 0x00DE, wctrc, _LOCALE_C); |
