Pango build with Clang 12 and LLVM 12 Failed tests (test-itemize, test-font)
Pango 1.48.5
Build configuration:
export CC=clang
export CXX=clang++
export LD=ld.lld
export CC_LD=lld
export CXX_LD=lld
export AR=llvm-ar
export NM=llvm-nm
export STRIP=llvm-strip
export OBJCOPY=llvm-objcopy
export OBJDUMP=llvm-objdump
export READELF=llvm-readelf
export HOSTCC=clang
export HOSTCXX=clang++
export HOSTAR=llvm-ar
export HOSTLD=ld.lld
export CPPFLAGS="-D_FORTIFY_SOURCE=2"
export CFLAGS="-fdiagnostics-color=always -pipe -O2 -march=native -fstack-protector-strong"
export CXXFLAGS="-fdiagnostics-color=always -pipe -O2 -march=native -fstack-protector-strong"
export LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now"
meson setup pango build \
--prefix /usr \
--libexecdir lib \
--sbindir bin \
--auto-features enabled \
--wrap-mode nodownload \
-D debug=false \
-D optimization=2 \
-D b_ndebug=true \
-D b_pie=true \
-D gtk_doc=true
Error log:
▶ 1/19 /itemize/two.items FAIL
2/19 test-coverage OK 0.06s 2 subtests passed
3/19 testcolor OK 0.06s 1 subtests passed
4/19 testscript OK 0.06s 1 subtests passed
5/19 test-ot-tags OK 0.06s 2 subtests passed
6/19 testiter OK 0.05s 2 subtests passed
7/19 test-ellipsize OK 0.05s 3 subtests passed
8/19 markup-parse OK 0.05s 20 subtests passed
9/19 test-shape SKIP 0.05s
10/19 testattributes OK 0.05s 19 subtests passed
11/19 cxx-test SKIP 0.04s
▶ 1/19 /itemize/one.items FAIL
▶ 12/19 ERROR:../pango/tests/test-font.c:272:test_roundtrip_plain: assertion failed: (pango_font_description_equal (desc2, desc)) ERROR
1/19 test-itemize ERROR 0.08s exit status 1
>>> G_TEST_BUILDDIR=src/build/tests MALLOC_PERTURB_=86 srcdir=src/pango/tests G_TEST_SRCDIR=src/pango/tests src/build/tests/test-itemize -k --tap
―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― ✀ ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
stderr:
(test program exited with status code 1)
――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
13/19 testmisc OK 0.08s 6 subtests passed
14/19 test-harfbuzz OK 0.08s 1 subtests passed
15/19 test-layout OK 0.09s 6 subtests passed
16/19 test-break OK 0.09s 3 subtests passed
17/19 testboundaries_ucd OK 0.13s 5 subtests passed
12/19 test-font ERROR 0.13s killed by signal 6 SIGABRT
>>> G_TEST_BUILDDIR=src/build/tests MALLOC_PERTURB_=177 srcdir=src/pango/tests G_TEST_SRCDIR=src/pango/tests src/build/tests/test-font -k --tap
―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― ✀ ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
stderr:
**
ERROR:../pango/tests/test-font.c:272:test_roundtrip_plain: assertion failed: (pango_font_description_equal (desc2, desc))
(test program exited with status code -6)
――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
18/19 testboundaries OK 0.26s 1 subtests passed
19/19 test-pangocairo-threads OK 0.65s 1 subtests passed
Summary of Failures:
1/19 test-itemize ERROR 0.08s exit status 1
12/19 test-font ERROR 0.13s killed by signal 6 SIGABRT
Ok: 15
Expected Fail: 0
Fail: 2
Unexpected Pass: 0
Skipped: 2
Timeout: 0
Error log 2
1/19 test-itemize ERROR 0.08s exit status 1
06:41:53 G_TEST_BUILDDIR=src/build/tests MALLOC_PERTURB_=86 srcdir=src/pango/tests G_TEST_SRCDIR=src/pango/tests src/build/tests/test-itemize -k --tap
----------------------------------- output -----------------------------------
stdout:
# random seed: R02S2c53184c639496cd3ae72513dc6acff3
1..2
# Start of itemize tests
# Contents don't match expected contents
# --- src/pango/tests/itemize/two.expected 2021-06-12 09:41:42.373293413 +0300
# +++ /tmp/.G96W40 2021-06-12 09:41:53.097390108 +0300
# @@ -1,8 +1,8 @@
# <span font="Cantarell 11">one <span font_features="tnum=0">tw<u>o</u> <span font_features="dlig=1">two</span> </span>th<b>r</b>ee</span>
#
# -Items: one tw |o | two th |r |ee
# -Font: Cantarell 11 |Cantarell 11 |Cantarell 11 |Cantarell Bold 11|Cantarell 11
# -Script: latin |latin |latin |latin |latin
# -Lang: en-us |en-us |en-us |en-us |en-us
# -Bidi: 0 |0 |0 |0 |0
# -Attrs: [4,12]font-features=tnum=0|[6,7]underline=1,[4,12]font-features=tnum=0|[8,11]font-features=dlig=1,[4,12]font-features=tnum=0| |
# +Items: one tw |o | two th |r |ee
# +Font: Cantarell 5.5 |Cantarell 5.5 |Cantarell 5.5 |Cantarell Bold 5.5|Cantarell 5.5
# +Script: latin |latin |latin |latin |latin
# +Lang: en-us |en-us |en-us |en-us |en-us
# +Bidi: 0 |0 |0 |0 |0
# +Attrs: [4,12]font-features=tnum=0|[6,7]underline=1,[4,12]font-features=tnum=0|[8,11]font-features=dlig=1,[4,12]font-features=tnum=0| |
#
not ok 1 /itemize/two.items
# Contents don't match expected contents
# --- src/pango/tests/itemize/one.expected 2021-06-12 09:41:42.373293413 +0300
# +++ /tmp/.097W40 2021-06-12 09:41:53.100390133 +0300
# @@ -1,7 +1,7 @@
# <span font="Cantarell 11" fallback="false">a b?c</span>
#
# Items: a b |[0x2028] |c
# -Font: Cantarell 11 |Cantarell 11 |Cantarell 11
# +Font: Cantarell 5.5 |Cantarell 5.5 |Cantarell 5.5
# Script: latin |latin |latin
# Lang: en-us |en-us |en-us
# Bidi: 0 |0 |0
#
not ok 2 /itemize/one.items
# End of itemize tests
stderr:
(test program exited with status code 1)
------------------------------------------------------------------------------
12/19 test-font ERROR 0.13s killed by signal 6 SIGABRT
06:41:53 G_TEST_BUILDDIR=src/build/tests MALLOC_PERTURB_=177 srcdir=src/pango/tests G_TEST_SRCDIR=src/pango/tests src/build/tests/test-font -k --tap
----------------------------------- output -----------------------------------
stdout:
# random seed: R02S2b3f4a1e2faf9e5411aa4ce61fd94a2c
1..8
# Start of pango tests
# Start of font tests
# Cantarell 11 metrics
# ascent: 14764
# descent: 3259
# height: 18023
# char width: 6768
# digit width: 9216
# underline position: -1502
# underline thickness: 751
# strikethrough position: 4340
# strikethrough thickness: 751
ok 1 /pango/font/metrics
ok 2 /pango/font/extents
ok 3 /pango/font/enumerate
# Start of roundtrip tests
Bail out! ERROR:../pango/tests/test-font.c:272:test_roundtrip_plain: assertion failed: (pango_font_description_equal (desc2, desc))
stderr:
**
ERROR:../pango/tests/test-font.c:272:test_roundtrip_plain: assertion failed: (pango_font_description_equal (desc2, desc))
(test program exited with status code -6)
------------------------------------------------------------------------------