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