mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-07 01:56:38 +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:
parent
9121cc7cae
commit
ffb3ba3079
Notes:
sideshowbarker
2024-07-17 21:39:21 +09:00
Author: https://github.com/trflynn89
Commit: ffb3ba3079
Pull-request: https://github.com/SerenityOS/serenity/pull/11622
3 changed files with 7 additions and 0 deletions
|
@ -1,5 +1,7 @@
|
||||||
serenity_testjs_test(test-js.cpp test-js)
|
serenity_testjs_test(test-js.cpp test-js)
|
||||||
|
|
||||||
install(TARGETS test-js RUNTIME DESTINATION bin OPTIONAL)
|
install(TARGETS test-js RUNTIME DESTINATION bin OPTIONAL)
|
||||||
|
link_with_unicode_data(test-js)
|
||||||
|
|
||||||
serenity_test(test-invalid-unicode-js.cpp LibJS LIBS LibJS)
|
serenity_test(test-invalid-unicode-js.cpp LibJS LIBS LibJS)
|
||||||
|
link_with_unicode_data(test-invalid-unicode-js)
|
||||||
|
|
|
@ -7,3 +7,5 @@ set(TEST_SOURCES
|
||||||
foreach(source IN LISTS TEST_SOURCES)
|
foreach(source IN LISTS TEST_SOURCES)
|
||||||
serenity_test("${source}" LibRegex LIBS LibRegex)
|
serenity_test("${source}" LibRegex LIBS LibRegex)
|
||||||
endforeach()
|
endforeach()
|
||||||
|
|
||||||
|
link_with_unicode_data(Regex)
|
||||||
|
|
|
@ -5,4 +5,7 @@ set(TEST_SOURCES
|
||||||
|
|
||||||
foreach(source IN LISTS TEST_SOURCES)
|
foreach(source IN LISTS TEST_SOURCES)
|
||||||
serenity_test("${source}" LibUnicode LIBS LibUnicode)
|
serenity_test("${source}" LibUnicode LIBS LibUnicode)
|
||||||
|
|
||||||
|
get_filename_component(target "${source}" NAME_WLE)
|
||||||
|
link_with_unicode_data("${target}")
|
||||||
endforeach()
|
endforeach()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue