Package: freshplayerplugin
Version: 0.3.1-2
Severity: important
Tags: sid
User: debian-m...@lists.debian.org
Usertags: mips-patch

Package freshplayerplugin_0.3.1-2 FTBFS on big-endian builds:
https://buildd.debian.org/status/fetch.php?pkg=freshplayerplugin&arch=mips&ver=0.3.1-2&stamp=1438213355

Failiure occurs in testing phase:
2/6 Test #2: test_ppb_char_set ................***Exception: Other 0.06 sec 
default charset = ANSI_X3.4-1968 to utf16: all ASCII test_ppb_char_set: 
/«PKGBUILDDIR»/tests/test_ppb_char_set.c:56: test_to_utf16: Assertion 
`memcmp(res, out, sizeof(out)) == 0' failed.

Looking at the test itself (test_ppb_char_set.c) it seems that test is assuming 
little-endian architecture:
const char *in = "Hello, world!";
uint16_t out[] = {0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x2c, 0x20, 0x77,
                                0x6f, 0x72, 0x6c, 0x64, 0x21};

Possible solution is creating separate out[] array for big-endian architecture 
that will be initialised with 16 bit representation for corresponding 
characters on big-endian.

Comments are welcomed.

Thank you!

Regards,
Jurica

Reply via email to