[Git][ghc/ghc][master] testsuite: Mark encoding004 as broken on FreeBSD

Marge Bot (@marge-bot) gitlab at gitlab.haskell.org
Sat Nov 16 21:25:44 UTC 2024



Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC


Commits:
6d95cdb8 by Ben Gamari at 2024-11-16T16:24:34-05:00
testsuite: Mark encoding004 as broken on FreeBSD

Due to #22003, CP936 fails to roundtrip:
```diff
 == CP936
+Failed to roundtrip given mutant byte at index 891 (251 /= 123 at index 891)
+Failed to roundtrip given mutant byte at index 1605 (197 /= 69 at index 1605)
+Failed to roundtrip given mutant byte at index 2411 (235 /= 107 at index 2411)
+Failed to roundtrip given mutant byte at index 6480 (208 /= 80 at index 6480)
+Failed to roundtrip given mutant byte at index 6482 (210 /= 82 at index 6482)
+Failed to roundtrip given mutant byte at index 6484 (212 /= 84 at index 6484)
+Failed to roundtrip given mutant byte at index 6496 (224 /= 96 at index 6496)
+Failed to roundtrip given mutant byte at index 7243 (203 /= 75 at index 7243)
+Failed to roundtrip given mutant byte at index 7277 (237 /= 109 at index 7277)
+Failed to roundtrip given mutant byte at index 8027 (219 /= 91 at index 8027)
+Failed to roundtrip given mutant byte at index 8801 (225 /= 97 at index 8801)
```

- - - - -


1 changed file:

- libraries/base/tests/IO/all.T


Changes:

=====================================
libraries/base/tests/IO/all.T
=====================================
@@ -137,17 +137,20 @@ test('encoding001', [], compile_and_run, [''])
 
 test('encoding002', normal, compile_and_run, [''])
 test('encoding003', normal, compile_and_run, [''])
-test('encoding004', [extra_files(['encoded-data/']), js_broken(22374),
-# wasi-libc doesn't have cp936, see
-# https://gitlab.haskell.org/ghc/wasi-libc/-/blob/main/libc-top-half/musl/src/locale/iconv.c#L38
-# and
-# https://gitlab.haskell.org/ghc/wasi-libc/-/blob/main/libc-top-half/musl/src/locale/codepages.h
-# for locales supported by wasi-libc's iconv implementation
-when(arch('wasm32'), skip),
-# MacOS Sonoma iconv() has a regression that causes this test to fail on the
-# CP936 roundtrip. See the ticket for related issues in other projects.
-when(opsys('darwin'), fragile(24161))
-], compile_and_run, [''])
+test('encoding004',
+     [ extra_files(['encoded-data/']),
+       js_broken(22374),
+       # wasi-libc doesn't have cp936, see
+       # https://gitlab.haskell.org/ghc/wasi-libc/-/blob/main/libc-top-half/musl/src/locale/iconv.c#L38
+       # and
+       # https://gitlab.haskell.org/ghc/wasi-libc/-/blob/main/libc-top-half/musl/src/locale/codepages.h
+       # for locales supported by wasi-libc's iconv implementation
+       when(arch('wasm32'), skip),
+       # MacOS Sonoma iconv() has a regression that causes this test to fail on the
+       # CP936 roundtrip. See the ticket for related issues in other projects.
+       when(opsys('darwin'), fragile(24161)),
+       when(opsys('freebsd'), expect_broken(22003))
+     ], compile_and_run, [''])
 test('encoding005', normal, compile_and_run, [''])
 
 test('environment001', [], makefile_test, ['environment001-test'])



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/6d95cdb83d7a15c35d6ee1a675ff891a3ac1ca20

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/6d95cdb83d7a15c35d6ee1a675ff891a3ac1ca20
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20241116/ee31e20e/attachment-0001.html>


More information about the ghc-commits mailing list