mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-21 12:30:06 +00:00
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:
parent
0371c23623
commit
131af38694
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user