mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 05:37:34 +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
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