mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-15 17:02:53 +08:00
add errcode for returnNullStr
This commit is contained in:
parent
ed7eef878d
commit
cfe0f5497d
@ -16,5 +16,7 @@ void GTestTask___init__(PikaObj* self) {
|
||||
}
|
||||
|
||||
char* GTestTask_Task_returnNullString(PikaObj* self) {
|
||||
obj_setErrorCode(self, 3);
|
||||
__platform_printf("returnNullString\n");
|
||||
return NULL;
|
||||
}
|
||||
|
@ -2467,8 +2467,6 @@ TEST(pikaMain, returnNullString) {
|
||||
/* assert */
|
||||
ArgType type = arg_getType(s);
|
||||
EXPECT_EQ(type, ARG_TYPE_NONE);
|
||||
EXPECT_STREQ(log_buff[0], "s is None\r\n");
|
||||
EXPECT_STREQ(log_buff[1], "BEGIN\r\n");
|
||||
/* deinit */
|
||||
obj_deinit(pikaMain);
|
||||
EXPECT_EQ(pikaMemNow(), 0);
|
||||
|
@ -2,4 +2,4 @@
|
||||
#define PIKA_VERSION_MINOR 9
|
||||
#define PIKA_VERSION_MICRO 0
|
||||
|
||||
#define PIKA_EDIT_TIME "2022/07/06 10:54:01"
|
||||
#define PIKA_EDIT_TIME "2022/07/06 11:03:07"
|
||||
|
Loading…
x
Reference in New Issue
Block a user