Discussion:
striconveha, uniconv/*: avoid test failures on musl libc
(too old to reply)
Bruno Haible
2018-02-24 14:25:17 UTC
Permalink
On Alpine Linux 3.7.0, which uses musl libc, I see these test failures in
libunistring:

FAIL: test-striconveha
======================

../../tests/test-striconveha.c:327: assertion 'retval == 0' failed
FAIL test-striconveha (exit status: 134)

FAIL: test-u16-conv-from-enc
============================

../../tests/uniconv/test-u16-conv-from-enc.c:137: assertion 'result != NULL' failed
FAIL test-u16-conv-from-enc (exit status: 134)

FAIL: test-u16-strconv-from-enc
===============================

../../tests/uniconv/test-u16-strconv-from-enc.c:84: assertion 'result != NULL' failed
FAIL test-u16-strconv-from-enc (exit status: 134)

FAIL: test-u32-conv-from-enc
============================

../../tests/uniconv/test-u32-conv-from-enc.c:137: assertion 'result != NULL' failed
FAIL test-u32-conv-from-enc (exit status: 134)

FAIL: test-u32-strconv-from-enc
===============================

../../tests/uniconv/test-u32-strconv-from-enc.c:84: assertion 'result != NULL' failed
FAIL test-u32-strconv-from-enc (exit status: 134)

FAIL: test-u8-conv-from-enc
===========================

../../tests/uniconv/test-u8-conv-from-enc.c:129: assertion 'result != NULL' failed
FAIL test-u8-conv-from-enc (exit status: 134)

FAIL: test-u8-strconv-from-enc
==============================

../../tests/uniconv/test-u8-strconv-from-enc.c:72: assertion 'result != NULL' failed
FAIL test-u8-strconv-from-enc (exit status: 134)


The cause is that musl libc does not support the ISO-2022-JP-2 encoding. This
patch fixes it.


Bruno

Loading...