diff --git a/lib/test/common/msg_queue_test.cc b/lib/test/common/msg_queue_test.cc index 5a4e2cc23..bc1d9f06c 100644 --- a/lib/test/common/msg_queue_test.cc +++ b/lib/test/common/msg_queue_test.cc @@ -49,8 +49,8 @@ void* write_thread(void *a) { int main(int argc, char **argv) { bool result; - rlc_tx_queue q; - byte_buffer_t *b; + rlc_tx_queue q; + byte_buffer_t *b; pthread_t thread; args_t args; u_int32_t r; @@ -71,6 +71,10 @@ int main(int argc, char **argv) { pthread_join(thread, NULL); + if (q.size() != 0 || q.size_bytes() != 0) { + result = false; + } + if(result) { printf("Passed\n"); exit(0);