fontconfig/test
Ben Wagner 921ede9f46 Fix test-conf string to integer conversion.
The test-conf build_pattern attempted to convert known constant strings
into integer values. However, it did so by always converting the string
value to an integer if possible and then complaining if the key wasn't
of the expected type. This lead to error messages on "style": "Regular"
since "Regular" was recognized as "weight".

Instead, only attempt conversion from string to integer if the key is
the name of an object which can take an integer type. This eliminates
the spurious non-fatal errors reported when parsing
test-90-synthetic.json.

This also fixes an issue where the created value was given the type of
the object found, but the integer field was assigned. Instead, check
that the object type can take an integer and always set the value type
to integer.
2020-12-16 10:16:40 -05:00
..
4x6.pcf Add simple tests 2003-03-01 05:55:17 +00:00
8x16.pcf Add simple tests 2003-03-01 05:55:17 +00:00
Makefile.am Always run-test-conf, but skip if not built. 2020-12-15 19:44:48 -05:00
fonts.conf.in Update testcase 2019-04-03 12:02:09 +00:00
meson.build Increased timeout for meson tests to 600sec to make tests work on Darwin 2020-11-28 01:16:36 +00:00
out.expected-long-family-names Add the check of PCF_CONFIG_OPTION_LONG_FAMILY_NAMES back 2017-11-20 17:29:39 +05:30
out.expected-no-long-family-names Add the check of PCF_CONFIG_OPTION_LONG_FAMILY_NAMES back 2017-11-20 17:29:39 +05:30
run-test-conf.sh Always run-test-conf, but skip if not built. 2020-12-15 19:44:48 -05:00
run-test-map.sh Replace UUID file mechanism with per-directory 'map' attribute [v2] 2019-04-03 12:02:09 +00:00
run-test.sh Portable trap conditions in run-test.sh. 2020-12-10 14:00:40 -05:00
test-60-generic.json Add a test case for FcFontList 2018-11-27 09:39:15 +00:00
test-90-synthetic.json Add a test case for 90-synthetic.conf 2018-05-11 22:15:39 +09:00
test-bz89617.c Fix a couple of minor memory leaks 2016-05-30 10:30:10 +09:00
test-bz96676.c Bug 96676 - Check range of FcWeightFromOpenType argument 2016-07-08 14:18:35 +09:00
test-bz106618.c Add a test case for bz#106618 2018-05-25 15:24:44 +09:00
test-bz106632.c Fix leaks in fcxml.c, fc-match.c, and tests. 2020-12-14 10:54:11 +00:00
test-bz131804.c Fix compiler warnings 2018-01-04 20:37:26 +09:00
test-bz1744377.c Fix gcc warnings with -Wpointer-sign 2019-11-06 20:28:58 +09:00
test-conf.c Fix test-conf string to integer conversion. 2020-12-16 10:16:40 -05:00
test-crbug1004254.c Fix gcc warnings with -Wpointer-sign 2019-11-06 20:28:58 +09:00
test-d1f48f11.c fccompat: fix build on Windows without unistd.h 2020-07-07 03:48:34 +00:00
test-issue107.c fccompat: fix build on Windows without unistd.h 2020-07-07 03:48:34 +00:00
test-issue110.c fccompat: fix build on Windows without unistd.h 2020-07-07 03:48:34 +00:00
test-issue180.c Fix leaks in fcxml.c, fc-match.c, and tests. 2020-12-14 10:54:11 +00:00
test-migration.c fccompat: fix build on Windows without unistd.h 2020-07-07 03:48:34 +00:00
test-name-parse.c Minor: fix warnings 2018-03-15 07:51:06 -07:00
test-pthread.c Add missing license headers 2014-01-17 13:05:25 +09:00
wrapper-script.sh Fix make check on cross-compiled env 2019-03-22 16:51:38 +09:00