add errcode for returnNullStr

This commit is contained in:
lyon 2022-07-06 11:03:08 +08:00
parent ed7eef878d
commit cfe0f5497d
3 changed files with 3 additions and 3 deletions

View File

@ -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;
}

View File

@ -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);

View File

@ -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"