浏览代码

Tests: Link some tests directly against LibUnicodeData

These were missed in 565a880ce5a14bac817c73916e91ebfa04c8b99b.

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.
Timothy Flynn 3 年之前
父节点
当前提交
ffb3ba3079
共有 3 个文件被更改,包括 7 次插入0 次删除
  1. 2 0
      Tests/LibJS/CMakeLists.txt
  2. 2 0
      Tests/LibRegex/CMakeLists.txt
  3. 3 0
      Tests/LibUnicode/CMakeLists.txt

+ 2 - 0
Tests/LibJS/CMakeLists.txt

@@ -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)

+ 2 - 0
Tests/LibRegex/CMakeLists.txt

@@ -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)

+ 3 - 0
Tests/LibUnicode/CMakeLists.txt

@@ -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()