rt/tst-mqueue4.c: Fix wrong number of argument for mq_open

The mq_open routine should only get either 2 or 4 arguments, this test
wrongly passed 3.

Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
This commit is contained in:
Frederic Berat 2023-06-20 20:19:06 +02:00 committed by Siddhesh Poyarekar
parent 0371c23623
commit 131af38694

View File

@ -175,14 +175,14 @@ do_test (void)
result = 1;
}
q2 = mq_open (name, O_RDONLY, 0600);
q2 = mq_open (name, O_RDONLY);
if (q2 == (mqd_t) -1)
{
printf ("mq_open without O_CREAT failed with %m\n");
result = 1;
}
mqd_t q3 = mq_open (name, O_RDONLY, 0600);
mqd_t q3 = mq_open (name, O_RDONLY);
if (q3 == (mqd_t) -1)
{
printf ("mq_open without O_CREAT failed with %m\n");