-
Notifications
You must be signed in to change notification settings - Fork 141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix detection of endianness in test suite #419
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I find it a bit difficult to understand what this PR does, in part because I'm unfamiliar with endianness issues. I think this would be helpful:
- Move the
dlist
changes to a separate PR. - Create an issue that describes the problem and reference it from this PR.
b40c659
to
d3d73db
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Much better! :)
Please reference #421 from the commit message(s) and I'll be happy! :)
tests/Properties/ByteString.hs
Outdated
let prop x = ioProperty $ do | ||
r <- B.fromFilePath x >>= B.toFilePath | ||
pure (r === x) | ||
-- Normally getFileSystemEncoding returns one of Unicode encodings, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-- Normally getFileSystemEncoding returns one of Unicode encodings, | |
-- Normally getFileSystemEncoding returns a Unicode encoding, |
d3d73db
to
5e13a79
Compare
* Fix detection of endianness in test suite (haskell#421) * Work around when getFileSystemEncoding is ASCII (haskell#421)
* Fix detection of endianness in test suite (haskell#421) * Work around when getFileSystemEncoding is ASCII (haskell#421)
Tested with
and then in s390x virtual machine:
apt update apt install -y ghc cabal-install git git clone https://github.com/haskell/bytestring cd bytestring/ cabal new-update cabal -j1 new-test test:test-builder
In an emulated environment it takes three hours to build, so at some point it appeared faster to scrap
dlist
dependency than build it :)