Skip to content

Commit 0a953a1

Browse files
committed
enable mor tests
1 parent 9bc1a54 commit 0a953a1

File tree

1 file changed

+2
-50
lines changed

1 file changed

+2
-50
lines changed

libc-test/build.rs

+2-50
Original file line numberDiff line numberDiff line change
@@ -1627,66 +1627,18 @@ fn test_freebsd(target: &str) {
16271627
cfg.skip_fn(move |name| {
16281628
// skip those that are manually verified
16291629
match name {
1630-
// FIXME: still required?
1631-
"execv" | // crazy stuff with const/mut
1632-
"execve" |
1633-
"execvp" |
1634-
"execvpe" |
1635-
"fexecve" => true,
1630+
// FIXME: https://github.com/rust-lang/libc/issues/1272
1631+
"execv" | "execve" | "execvp" | "execvpe" | "fexecve" => true,
16361632

16371633
// The `uname` function in freebsd is now an inline wrapper that
16381634
// delegates to another, but the symbol still exists, so don't check
16391635
// the symbol.
16401636
"uname" => true,
16411637

1642-
// aio_waitcomplete's return type changed between FreeBSD 10 and 11.
1643-
// FIXME: still required?
1644-
"aio_waitcomplete" => true,
1645-
1646-
// lio_listio confuses the checker, probably because one of its
1647-
// arguments is an array
1648-
// FIXME: still required?
1649-
"lio_listio" => true,
1650-
16511638
_ => false,
16521639
}
16531640
});
16541641

1655-
cfg.skip_field_type(move |struct_, field| {
1656-
// This is a weird union, don't check the type.
1657-
// FIXME: still required?
1658-
(struct_ == "ifaddrs" && field == "ifa_ifu") ||
1659-
// FIXME: still required?
1660-
// sighandler_t type is super weird
1661-
(struct_ == "sigaction" && field == "sa_sigaction") ||
1662-
// FIXME: still required?
1663-
// sigval is actually a union, but we pretend it's a struct
1664-
(struct_ == "sigevent" && field == "sigev_value") ||
1665-
// aio_buf is "volatile void*" and Rust doesn't understand volatile
1666-
// FIXME: still required?
1667-
(struct_ == "aiocb" && field == "aio_buf") ||
1668-
// stack_t.ss_sp's type changed from FreeBSD 10 to 11 in svn r294930
1669-
// FIXME: still required?
1670-
(struct_ == "stack_t" && field == "ss_sp")
1671-
});
1672-
1673-
cfg.skip_field(move |struct_, field| {
1674-
// this is actually a union on linux, so we can't represent it well and
1675-
// just insert some padding.
1676-
// FIXME: still required?
1677-
(struct_ == "siginfo_t" && field == "_pad") ||
1678-
// sigev_notify_thread_id is actually part of a sigev_un union
1679-
// FIXME: still required?
1680-
(struct_ == "sigevent" && field == "sigev_notify_thread_id") ||
1681-
// signalfd had SIGSYS fields added in Linux 4.18, but no libc release has them yet.
1682-
// FIXME: still required?
1683-
(struct_ == "signalfd_siginfo" && (field == "ssi_addr_lsb" ||
1684-
field == "_pad2" ||
1685-
field == "ssi_syscall" ||
1686-
field == "ssi_call_addr" ||
1687-
field == "ssi_arch"))
1688-
});
1689-
16901642
cfg.generate("../src/lib.rs", "main.rs");
16911643
}
16921644

0 commit comments

Comments
 (0)