Add a return value check of message queue test cases, to fix issue #31680, which is for CID :216795. Signed-off-by: Enjia Mai <enjiax.mai@intel.com>