summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2019-10-29 11:52:00 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2019-10-29 11:52:00 +0100
commit661ae943f9c9f3bcd8ea2b20d833cca632a8d55f (patch)
treee52f7dc542c6486f8ce302301a12d6a7a656ae99 /test
parent6ea1471d624428f810b72113859e3f7739fcaf03 (diff)
parente3b758dc9f74d6b7ec5b19df1d192a0eec6acd40 (diff)
Merge remote-tracking branch 'github/master'
Diffstat (limited to 'test')
-rw-r--r--test/misc/tst-nftw.c4
-rw-r--r--test/nptl/tst-mqueue4.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/test/misc/tst-nftw.c b/test/misc/tst-nftw.c
index 970dfc2..7a08c78 100644
--- a/test/misc/tst-nftw.c
+++ b/test/misc/tst-nftw.c
@@ -35,9 +35,9 @@ do_test(void)
perror("Creating path");
if ((mkdir(subpath, 0700)) < 0)
perror("Creating subpath");
- if ((open(filepath, O_CREAT)) < 0)
+ if ((open(filepath, O_CREAT, 0600)) < 0)
perror("Opening filepath");
- if ((open(filesubpath, O_CREAT)) < 0)
+ if ((open(filesubpath, O_CREAT, 0600)) < 0)
perror("Opening filesubpath");
if (nftw(path, process_one_entry, 100, (FTW_CHDIR|FTW_DEPTH|FTW_PHYS)) < 0)
diff --git a/test/nptl/tst-mqueue4.c b/test/nptl/tst-mqueue4.c
index 87ef0c3..1fbecc5 100644
--- a/test/nptl/tst-mqueue4.c
+++ b/test/nptl/tst-mqueue4.c
@@ -171,14 +171,14 @@ do_test (void)
result = 1;
}
- q2 = mq_open (name, O_RDONLY, 0600);
+ q2 = mq_open (name, O_RDONLY, 0600, &attr);
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, 0600, &attr);
if (q3 == (mqd_t) -1)
{
printf ("mq_open without O_CREAT failed with %m\n");