尝试进行 Qt 测试,增加了 AI 人机调试工具 _console,以及 TransPyV 进行修正
This commit is contained in:
@@ -33,10 +33,8 @@ def mbuddy_main() -> CInt:
|
||||
testcheck.section("基础 alloc/free")
|
||||
arena: bytes = stdlib.malloc(65536)
|
||||
bd: memhub.MemBuddy | CPtr = memhub.MemBuddy(arena, 65536)
|
||||
s1: CSizeT = bd.stats()
|
||||
fc1: CSizeT = bd.free_count()
|
||||
|
||||
viperlib.snprintf(buf, 256, "stats=%lu, free_count=%lu", s1, fc1)
|
||||
viperlib.snprintf(buf, 256, "stats=%lu, free_count=%lu", bd.stats(), bd.free_count())
|
||||
testcheck.info(buf)
|
||||
|
||||
p1: bytes = bd.alloc(16)
|
||||
|
||||
Reference in New Issue
Block a user