1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 05:47:35 +00:00

Tests: Link some tests directly against LibUnicodeData

These were missed in 565a880ce5.

This wasn't an issue because these tests don't pledge/unveil anything,
so they could happily dlopen() the library at runtime. But this is now
needed in order to migrate LibUnicode towards weak symbols instead.
This commit is contained in:
Timothy Flynn 2022-01-04 10:52:19 -05:00 committed by Linus Groh
parent 9121cc7cae
commit ffb3ba3079
3 changed files with 7 additions and 0 deletions

View file

@ -1,5 +1,7 @@
serenity_testjs_test(test-js.cpp test-js)
install(TARGETS test-js RUNTIME DESTINATION bin OPTIONAL)
link_with_unicode_data(test-js)
serenity_test(test-invalid-unicode-js.cpp LibJS LIBS LibJS)
link_with_unicode_data(test-invalid-unicode-js)

View file

@ -7,3 +7,5 @@ set(TEST_SOURCES
foreach(source IN LISTS TEST_SOURCES)
serenity_test("${source}" LibRegex LIBS LibRegex)
endforeach()
link_with_unicode_data(Regex)

View file

@ -5,4 +5,7 @@ set(TEST_SOURCES
foreach(source IN LISTS TEST_SOURCES)
serenity_test("${source}" LibUnicode LIBS LibUnicode)
get_filename_component(target "${source}" NAME_WLE)
link_with_unicode_data("${target}")
endforeach()