refactor(test): 收尾 6 个测试用例的新规范语法迁移
CoroTest/DefaultArgTest/FormatStringTest/FuncTest/MLIRLiteTest/ThreadingTest 的 App/main.vp 从旧写法(t.CInt/t.CPtr 注解、多行单语句体)迁到新规范(int 短别名、T* 后缀、单语句体并一行),为既有迁移的遗留未提交部分。验证:TPV 自举产物顺序回归 77/77 全通过。
This commit is contained in:
1 parent
3f532e665d
commit
44ce29200e
6 files changed
+333
-406
No files matched your search
@@ -56,7 +56,6 @@ def _increment_worker(arg: t.CPtr) -> t.CPtr:
|
||||
def _lock_worker(arg: t.CPtr) -> t.CPtr:
|
||||
lk: vthreading.Lock | t.CPtr = (vthreading.Lock | t.CPtr)(arg)
|
||||
global _shared_count
|
||||
i: t.CInt
|
||||
for i in range(LOCK_ITER):
|
||||
lk.acquire()
|
||||
_shared_count += 1
|
||||
|
||||
Reference in new issue
Block a user