Skip to content

Commit 0ae5b2b

Browse files
authored
Add test for sdl2_ttf to test_other.py. NFC (#16125)
It seems that harfbuzz is not buildable on MacOS but we missed this because it was only getting built as part of browser tests which only run on linux (at least in CI they only run on linux). See #16097, #16073
1 parent 272bc3b commit 0ae5b2b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/test_other.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1849,6 +1849,10 @@ def test_icu(self):
18491849
self.set_setting('USE_ICU')
18501850
self.do_runf(test_file('other/test_icu.cpp'))
18511851

1852+
def test_sdl2_ttf(self):
1853+
# This is a compile-only to test to verify that sdl2-ttf (and freetype and harfbuzz) are buildable.
1854+
self.emcc(test_file('sdl2_ttf.c'), args=['-sUSE_SDL=2', '-sUSE_SDL_TTF=2'], output_filename='a.out.js')
1855+
18521856
def test_link_memcpy(self):
18531857
# memcpy can show up *after* optimizations, so after our opportunity to link in libc, so it must be special-cased
18541858
create_file('main.cpp', r'''

0 commit comments

Comments
 (0)