summaryrefslogtreecommitdiff
path: root/tests/testmisc.c
Commit message (Collapse)AuthorAgeFilesLines
* Don't assert in pango_language_get_scriptsavoid-script-lang-crashMatthias Clasen2020-09-081-0/+15
| | | | | | | | | | | The assertion in pango_language_get_scripts can actually be triggered since we last regenerated the pango_script_for_lang table. It now includes an entry for und-zsye which has no scripts. Handle this case without asserting. This commit includes a test.
* Add a reproducer for a pidgin crashMatthias Clasen2020-07-301-0/+20
| | | | This test is reproducing the crash reported in #490.
* itemize: Work around gtk2 brokennessMatthias Clasen2020-06-101-0/+14
| | | | | | | | | | | GTK 2 apparently manages to call pango_itemize_with_base_dir with a non-zero length for a string that contains 0 characters. That in turn causes pango_log2vis_get_embedding_levels to return NULL, and things go downhill from there. A test is included. Fixes: #480
* tests: Add an explanationMatthias Clasen2020-06-091-0/+3
| | | | | Lets explain what this test is about, since it doesn't appear to test anything.
* Add a test for a crash in shape_tabMatthias Clasen2020-06-091-0/+49
This verifies the fix in the previous commit.