From 8e1dd24f8cf231680d2f866ea0c4498a93586c1e Mon Sep 17 00:00:00 2001 From: star9029 Date: Wed, 15 Jan 2025 23:04:25 +0800 Subject: [PATCH] Fix test --- packages/t/thorvg/xmake.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/t/thorvg/xmake.lua b/packages/t/thorvg/xmake.lua index 252fa40f350..405b6350400 100644 --- a/packages/t/thorvg/xmake.lua +++ b/packages/t/thorvg/xmake.lua @@ -108,7 +108,12 @@ package("thorvg") end) on_test(function (package) - -- assert(package:has_cxxfuncs("tvg::Initializer::init(0)", {includes = "thorvg.h", configs = {languages = "c++14"}})) + assert(package:check_cxxsnippets({test = [[ + #include + void test() { + tvg::Initializer::init(0); + } + ]]}, {configs = {languages = "c++14"}})) if package:config("c_api") then assert(package:has_cxxfuncs("tvg_engine_init", {includes = "thorvg_capi.h"})) end