Lines Matching refs:write
24 * @tc.desc : Test the write function, the return value is the specified buf length
29 const char *msg = "This is a c test code for write function";
36 t_error("%s write create file error", __func__);
39 int result = write(fd, msg, len);
41 t_error("%s write get result is %d not want %d", __func__, result, len);
59 * @tc.desc : test the return value of write when the count parameter is 0
64 const char *msg = "This is a c test code for write function";
70 t_error("%s write create file error", __func__);
73 int result = write(fd, msg, len);
75 t_error("%s write get result is %d not want %d", __func__, result, len);
83 * @tc.desc : test the return result of write when count is greater than the length of buf
88 const char *msg = "This is a c test code for write function";
94 t_error("%s write create file error", __func__);
97 int result = write(fd, msg, len);
99 t_error("%s write get result is %d not want -1", __func__, result);
107 * @tc.desc : test the return value of write when fd is abnormal
112 const char *msg = "This is a c test code for write function";
117 int result = write(fd, msg, len);
119 t_error("%s write get result is %d not want -1", __func__, result);
127 * @tc.desc : test the return value of write when buf is NULL
138 t_error("%s write create file error", __func__);
141 int result = write(fd, msg, len);
143 t_error("%s write get result is %d not want -1", __func__, result);