diff options
author | bluhm <> | 2020-11-09 23:18:51 +0000 |
---|---|---|
committer | bluhm <> | 2020-11-09 23:18:51 +0000 |
commit | c369d42df84f5bdabcac9041e6c5680a0cbfeaf9 (patch) | |
tree | 2233f16128b2705882f46a8369c9f9f47f40af5c /src/regress/lib/libc/sys/t_stat.c | |
parent | 999ec352efbeb24cccd1d584b91a659b15764151 (diff) | |
download | openbsd-c369d42df84f5bdabcac9041e6c5680a0cbfeaf9.tar.gz openbsd-c369d42df84f5bdabcac9041e6c5680a0cbfeaf9.tar.bz2 openbsd-c369d42df84f5bdabcac9041e6c5680a0cbfeaf9.zip |
Sync libc syscall tests with changes in upstream NetBSD. Use #ifdef
to document differences to NetBSD behaviour, this helps to track
upstream. Mark currently failing test as expected failures. So
test programs get compiled and executed, but it shows that further
investigation is necceassry.
Diffstat (limited to 'src/regress/lib/libc/sys/t_stat.c')
-rw-r--r-- | src/regress/lib/libc/sys/t_stat.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/regress/lib/libc/sys/t_stat.c b/src/regress/lib/libc/sys/t_stat.c index 73350c0e6a..5aadf39b99 100644 --- a/src/regress/lib/libc/sys/t_stat.c +++ b/src/regress/lib/libc/sys/t_stat.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: t_stat.c,v 1.2 2019/11/22 15:59:53 bluhm Exp $ */ | 1 | /* $OpenBSD: t_stat.c,v 1.3 2020/11/09 23:18:51 bluhm Exp $ */ |
2 | /* $NetBSD: t_stat.c,v 1.6 2019/07/16 17:29:18 martin Exp $ */ | 2 | /* $NetBSD: t_stat.c,v 1.6 2019/07/16 17:29:18 martin Exp $ */ |
3 | 3 | ||
4 | /*- | 4 | /*- |
@@ -68,7 +68,7 @@ ATF_TC_BODY(stat_chflags, tc) | |||
68 | (void)memset(&sa, 0, sizeof(struct stat)); | 68 | (void)memset(&sa, 0, sizeof(struct stat)); |
69 | (void)memset(&sb, 0, sizeof(struct stat)); | 69 | (void)memset(&sb, 0, sizeof(struct stat)); |
70 | 70 | ||
71 | fd = open(path, O_RDONLY | O_CREAT); | 71 | fd = open(path, O_RDONLY | O_CREAT, 0600); |
72 | 72 | ||
73 | ATF_REQUIRE(fd != -1); | 73 | ATF_REQUIRE(fd != -1); |
74 | ATF_REQUIRE(stat(path, &sa) == 0); | 74 | ATF_REQUIRE(stat(path, &sa) == 0); |
@@ -258,7 +258,7 @@ ATF_TC_BODY(stat_perm, tc) | |||
258 | uid = getuid(); | 258 | uid = getuid(); |
259 | gid = getgid(); | 259 | gid = getgid(); |
260 | 260 | ||
261 | fd = open(path, O_RDONLY | O_CREAT); | 261 | fd = open(path, O_RDONLY | O_CREAT, 0600); |
262 | 262 | ||
263 | ATF_REQUIRE(fd != -1); | 263 | ATF_REQUIRE(fd != -1); |
264 | ATF_REQUIRE(fstat(fd, &sa) == 0); | 264 | ATF_REQUIRE(fstat(fd, &sa) == 0); |