Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
star-hengxing committed Sep 30, 2024
1 parent 40bdc7b commit fc6c6b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/l/libsvgtiny/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ package("libsvgtiny")
on_install(function (package)
os.cd(package:version_str())
io.replace("src/svgtiny.c", "calloc(sizeof(*diagram), 1);", "calloc(1, sizeof(*diagram));", {plain = true})

os.cp(path.join(package:scriptdir(), "port", "xmake.lua"), "xmake.lua")
import("package.tools.xmake").install(package)
end)

on_test(function (package)
assert(package:has_cfuncs("svgtiny_create", {includes = "svgtiny.h"}))
assert(package:has_cfuncs("svgtiny_create", {includes = {"stddef.h", "svgtiny.h"}}))
end)

0 comments on commit fc6c6b6

Please sign in to comment.