From c369d42df84f5bdabcac9041e6c5680a0cbfeaf9 Mon Sep 17 00:00:00 2001 From: bluhm <> Date: Mon, 9 Nov 2020 23:18:51 +0000 Subject: 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. --- src/regress/lib/libc/sys/t_chroot.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/regress/lib/libc/sys/t_chroot.c') diff --git a/src/regress/lib/libc/sys/t_chroot.c b/src/regress/lib/libc/sys/t_chroot.c index 1fbe392a88..b2bc16e49e 100644 --- a/src/regress/lib/libc/sys/t_chroot.c +++ b/src/regress/lib/libc/sys/t_chroot.c @@ -1,4 +1,4 @@ -/* $OpenBSD: t_chroot.c,v 1.1.1.1 2019/11/19 19:57:03 bluhm Exp $ */ +/* $OpenBSD: t_chroot.c,v 1.2 2020/11/09 23:18:51 bluhm Exp $ */ /* $NetBSD: t_chroot.c,v 1.2 2017/01/10 22:36:29 christos Exp $ */ /*- @@ -310,12 +310,12 @@ ATF_TP_ADD_TCS(tp) ATF_TP_ADD_TC(tp, chroot_basic); ATF_TP_ADD_TC(tp, chroot_err); ATF_TP_ADD_TC(tp, chroot_perm); -/* - * Not available on OpenBSD - * ATF_TP_ADD_TC(tp, fchroot_basic); - * ATF_TP_ADD_TC(tp, fchroot_err); - * ATF_TP_ADD_TC(tp, fchroot_perm); - */ +#ifndef __OpenBSD__ + /* fchroot(2) not available */ + ATF_TP_ADD_TC(tp, fchroot_basic); + ATF_TP_ADD_TC(tp, fchroot_err); + ATF_TP_ADD_TC(tp, fchroot_perm); +#endif return atf_no_error(); } -- cgit v1.2.3-55-g6feb