diff options
| author | ruki <[email protected]> | 2024-02-15 00:39:50 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2024-02-15 00:39:50 +0800 |
| commit | 65956e89ac52a0ee6d914cba74d1fea8e32c9f58 (patch) | |
| tree | 3220c70e0f550be945e09a489083b2627d684502 | |
| parent | 043cacd380110c7a1c0cbf46ff188226b335fb67 (diff) | |
improve test
| -rw-r--r-- | tests/apis/xxx_script/xmake.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/apis/xxx_script/xmake.lua b/tests/apis/xxx_script/xmake.lua index c3acce0ab..7cc4f0883 100644 --- a/tests/apis/xxx_script/xmake.lua +++ b/tests/apis/xxx_script/xmake.lua @@ -1,7 +1,7 @@ target("test") before_build("iphoneos|arm64", "macosx", function (target) - assert(is_plat("macosx") or (is_plat("iphoneos") and is_arch("arm64"))) + assert(target:is_plat("macosx") or (target:is_plat("iphoneos") and target:is_arch("arm64"))) end) before_build(function (target) @@ -17,5 +17,5 @@ target("test") end) after_build("linux|*", function (target) - assert(is_plat("linux")) + assert(target:is_plat("linux")) end) |
