Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
star-hengxing authored Jan 15, 2025
1 parent 9c5e643 commit 8e1dd24
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/t/thorvg/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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 <thorvg.h>
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
Expand Down

0 comments on commit 8e1dd24

Please sign in to comment.