strings-test.js fails on s390x
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Nodejs nan |
New
|
Unknown
|
|||
node-nan (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
534 passing (12s)
1 failing
1) test/js/
Error: should be equal
+ expected - actual
-栀攀氀氀漀
+hello
at Test.<anonymous> (test/js/
at Object.<anonymous> (test/js/
Google translate says "栀攀氀氀漀" means "gardenia" in English. I'm guessing instead the result is just garbage data. There's no indication from the test that this could resolve to anything other than "hello". The test's code is:
/* we check Buffer.alloc rather than Buffer.from because
* we don't want the base class Uint8Array.from */
if (typeof(
buf = Buffer.
} else {
buf = new Buffer('hello');
}
t.equal(
t.equal(
Upstream issues https:/
Related branches
- git-ubuntu bot: Approve
- Sergio Durigan Junior (community): Approve
- Canonical Server Reporter: Pending requested
-
Diff: 94 lines (+55/-1)4 files modifieddebian/changelog (+17/-0)
debian/control (+2/-1)
debian/patches/disable-test-for-s390x.patch (+35/-0)
debian/patches/series (+1/-0)
Changed in node-nan: | |
status: | Unknown → New |
This bug was fixed in the package node-nan - 2.15.0-1ubuntu1
---------------
node-nan (2.15.0-1ubuntu1) jammy; urgency=medium
* d/p/disable- test-for- s390x.patch: Disable part of strings-test
- This test case breaks on s390x, presumably due to endian issue
(LP: #1967589)
-- Bryce Harrington <email address hidden> Sat, 02 Apr 2022 02:16:42 +0000