summaryrefslogtreecommitdiff
path: root/gtest
diff options
context:
space:
mode:
author“pengxuanzheng” <[email protected]>2022-07-11 10:45:50 +0000
committer“pengxuanzheng” <[email protected]>2022-07-12 07:28:14 +0000
commitb19d688c161dacfd4a48a12970a5185c4c1b6437 (patch)
tree21c542f8155e40ae022d8caa9b82c1fca66ff859 /gtest
parent368976573d409c5eda178fc5081bd47e0f1a6220 (diff)
🐞 fix: lua脚本返回空值,对应的out_len修改为0
Diffstat (limited to 'gtest')
-rw-r--r--gtest/gtest_tsg_lua_exec_bytecode_file.cpp2
-rw-r--r--gtest/gtest_tsg_lua_exec_file.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/gtest/gtest_tsg_lua_exec_bytecode_file.cpp b/gtest/gtest_tsg_lua_exec_bytecode_file.cpp
index f99298c..6e82120 100644
--- a/gtest/gtest_tsg_lua_exec_bytecode_file.cpp
+++ b/gtest/gtest_tsg_lua_exec_bytecode_file.cpp
@@ -267,7 +267,7 @@ TEST(tsg_lua_exec_bytecode_file, return_type_invaild)
/* check */
EXPECT_EQ(ERR_RETUNR_NIL, ret);
- EXPECT_EQ(5, out_len);
+ EXPECT_EQ(0, out_len);
EXPECT_EQ(NIL, out_type);
EXPECT_STREQ("", out);
}
diff --git a/gtest/gtest_tsg_lua_exec_file.cpp b/gtest/gtest_tsg_lua_exec_file.cpp
index 041b58d..31ff6d4 100644
--- a/gtest/gtest_tsg_lua_exec_file.cpp
+++ b/gtest/gtest_tsg_lua_exec_file.cpp
@@ -439,7 +439,7 @@ TEST(tsg_lua_exec_file, return_type_nil)
/* check */
EXPECT_EQ(ERR_RETUNR_NIL, ret);
- EXPECT_EQ(5, out_len);
+ EXPECT_EQ(0, out_len);
EXPECT_EQ(NIL, out_type);
EXPECT_STREQ("", out);
}