Home
last modified time | relevance | path

Searched refs:attrget (Results 1 – 2 of 2) sorted by relevance

/kernel/liteos_m/testsuites/sample/posix/mqueue/
DIt_posix_queue_009.c38 struct mq_attr attrget; in Testcase() local
49 ret = mq_getattr(mqueue, &attrget); in Testcase()
51 ICUNIT_GOTO_EQUAL(attrget.mq_curmsgs, 0, attrget.mq_curmsgs, EXIT1); in Testcase()
52 ICUNIT_GOTO_EQUAL(attrget.mq_flags, O_CREAT | O_RDWR | O_NONBLOCK, attrget.mq_flags, EXIT1); in Testcase()
53 ICUNIT_GOTO_EQUAL(attrget.mq_maxmsg, attr.mq_maxmsg, attrget.mq_maxmsg, EXIT1); in Testcase()
54 ICUNIT_GOTO_EQUAL(attrget.mq_msgsize, attr.mq_msgsize, attrget.mq_msgsize, EXIT1); in Testcase()
56 if (!(attrget.mq_flags & O_NONBLOCK)) { in Testcase()
/kernel/liteos_a/testsuites/unittest/libc/posix/mqueue/full/
DIt_posix_queue_015.cpp39 struct mq_attr attrget; in Testcase() local
50 ret = mq_getattr(mqueue, &attrget); in Testcase()
52 ICUNIT_GOTO_EQUAL(attrget.mq_curmsgs, 0, attrget.mq_curmsgs, EXIT1); in Testcase()
53 ICUNIT_GOTO_EQUAL(attrget.mq_flags, O_CREAT | O_RDWR | O_NONBLOCK, attrget.mq_flags, EXIT1); in Testcase()
54 ICUNIT_GOTO_EQUAL(attrget.mq_maxmsg, attr.mq_maxmsg, attrget.mq_maxmsg, EXIT1); in Testcase()
55 ICUNIT_GOTO_EQUAL(attrget.mq_msgsize, attr.mq_msgsize, attrget.mq_msgsize, EXIT1); in Testcase()
57 ICUNIT_GOTO_NOT_EQUAL(attrget.mq_flags & O_NONBLOCK, 0, MQUEUE_IS_ERROR, EXIT1); in Testcase()