Fix some tests on win32
I'm coming from https://github.com/msys2/MINGW-packages/pull/10938. I have fixed the errors related to the "Cantarell" font not being found in the system, by registering https://gitlab.gnome.org/GNOME/pango/-/blob/main/tests/fonts/Cantarell-VF.otf before running the test. This is done using AddFontResourceExW
API provided by Windows.
Though this didn't fix all the tests at least some of them are fixed. I don't know why others fail or I don't have knowledge to fix them.
A small changelog:
- test-font test now fails due to another error (probably due to rounding off)
- fix testserialize test on win32
- fix testiter test on win32
Test output:
1/26 test-coverage OK 0.21s 2 subtests passed
2/26 testboundaries OK 0.23s 1 subtests passed
3/26 testcolor OK 0.19s 3 subtests passed
4/26 testscript OK 0.16s 1 subtests passed
5/26 testboundaries_ucd OK 0.35s 5 subtests passed
6/26 testtabs OK 0.16s 3 subtests passed
7/26 testmatrix OK 0.42s 10 subtests passed
8/26 test-ot-tags OK 0.72s 2 subtests passed
9/26 testlanguage OK 1.01s 2 subtests passed
10/26 test-bidi OK 0.86s 6 subtests passed
11/26 testcontext OK 0.80s 6 subtests passed
12/26 testiter OK 0.47s 2 subtests passed
13/26 test-ellipsize OK 0.43s 3 subtests passed
14/26 test-shape SKIP 0.29s
15/26 test-itemize SKIP 0.44s 0 subtests passed
16/26 cxx-test SKIP 0.22s
17/26 test-font ERROR 0.59s (exit status 2147483651 or signal 2147483523 SIGinvalid)
>>> MALLOC_PERTURB_=102 G_TEST_SRCDIR=C:/dev/pango-tests/pango/tests G_TEST_BUILDDIR=C:/dev/pango-tests/pango/_build/tests LC_ALL=en_US.UTF-8 PATH=C:/dev/pango-tests/pango/_build/pango;C:/msys64/mingw64/lib/python3.9/site-packages/pywin32_system32;C:\Users\naveen\.local\bin;C:\Users\naveen\tools;C:\msys64\mingw64\bin;C:\msys64\usr\local\bin;C:\msys64\usr\bin;C:\msys64\usr\bin;C:\Windows\System32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\msys64\usr\bin\site_perl;C:\msys64\usr\bin\vendor_perl;C:\msys64\usr\bin\core_perl;C:\msys64\mingw64\bin\ srcdir=C:/dev/pango-tests/pango/tests C:/dev/pango-tests/pango/_build/tests/test-font.exe -k --tap
18/26 testattributes OK 0.49s 35 subtests passed
19/26 test-harfbuzz OK 0.43s 1 subtests passed
20/26 test-break SKIP 0.51s 0 subtests passed
21/26 testmisc ERROR 0.56s (exit status 2147483651 or signal 2147483523 SIGinvalid)
>>> G_TEST_SRCDIR=C:/dev/pango-tests/pango/tests MALLOC_PERTURB_=221 G_TEST_BUILDDIR=C:/dev/pango-tests/pango/_build/tests LC_ALL=en_US.UTF-8 PATH=C:/dev/pango-tests/pango/_build/pango;C:/msys64/mingw64/lib/python3.9/site-packages/pywin32_system32;C:\Users\naveen\.local\bin;C:\Users\naveen\tools;C:\msys64\mingw64\bin;C:\msys64\usr\local\bin;C:\msys64\usr\bin;C:\msys64\usr\bin;C:\Windows\System32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\msys64\usr\bin\site_perl;C:\msys64\usr\bin\vendor_perl;C:\msys64\usr\bin\core_perl;C:\msys64\mingw64\bin\ srcdir=C:/dev/pango-tests/pango/tests C:/dev/pango-tests/pango/_build/tests/testmisc.exe -k --tap
22/26 testserialize OK 0.57s 7 subtests passed
23/26 test-layout SKIP 0.65s 0 subtests passed
24/26 test-pangocairo-threads ERROR 1.32s exit status 1
>>> G_TEST_SRCDIR=C:/dev/pango-tests/pango/tests G_TEST_BUILDDIR=C:/dev/pango-tests/pango/_build/tests LC_ALL=en_US.UTF-8 MALLOC_PERTURB_=34 PATH=C:/dev/pango-tests/pango/_build/pango;C:/msys64/mingw64/lib/python3.9/site-packages/pywin32_system32;C:\Users\naveen\.local\bin;C:\Users\naveen\tools;C:\msys64\mingw64\bin;C:\msys64\usr\local\bin;C:\msys64\usr\bin;C:\msys64\usr\bin;C:\Windows\System32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\msys64\usr\bin\site_perl;C:\msys64\usr\bin\vendor_perl;C:\msys64\usr\bin\core_perl;C:\msys64\mingw64\bin\ srcdir=C:/dev/pango-tests/pango/tests C:/dev/pango-tests/pango/_build/tests/test-pangocairo-threads.exe -k --tap
25/26 testrandom OK 7.63s 6 subtests passed
26/26 markup-parse OK 15.25s 122 subtests passed
Ok: 18
Expected Fail: 0
Fail: 3
Unexpected Pass: 0
Skipped: 5
Timeout: 0