Skip to content

Commit 9fa51cc

Browse files
committed
Revert "test: musl: Skip time64-dependent API on new musl"
This reverts commit 72fe537.
1 parent b0966b6 commit 9fa51cc

File tree

1 file changed

+0
-77
lines changed

1 file changed

+0
-77
lines changed

libc-test/build.rs

Lines changed: 0 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -4781,83 +4781,6 @@ fn test_linux(target: &str) {
47814781
_ => false,
47824782
});
47834783

4784-
// FIXME(musl,time): these should be resolved with the time64 updates
4785-
if musl_v1_2_3 {
4786-
// Time primitives changed, as did structs containing them
4787-
cfg.skip_alias(|ty| match ty.ident() {
4788-
"time_t" | "suseconds_t" => true,
4789-
_ => false,
4790-
});
4791-
cfg.skip_struct(|s| match s.ident() {
4792-
"utimbuf" | "timeval" | "timespec" | "rusage" | "itimerval" | "itimerspec"
4793-
| "timex" | "ntptimeval" | "stat" | "shmid_ds" | "msqid_ds" => true,
4794-
_ => false,
4795-
});
4796-
4797-
cfg.skip_const(|c| match c.ident() {
4798-
// Changed syscall numbers under `linux_time_bits64`
4799-
"SO_TIMESTAMP" | "SO_TIMESTAMPNS" | "SO_TIMESTAMPING" | "SO_RCVTIMEO"
4800-
| "SO_SNDTIMEO" => true,
4801-
// Derived from `SO_` constants
4802-
"SCM_TIMESTAMP" | "SCM_TIMESTAMPNS" | "SCM_TIMESTAMPING" => true,
4803-
// `IPC_STAT` and derived values
4804-
"IPC_STAT" | "SEM_STAT" | "SEM_STAT_ANY" => true,
4805-
_ => false,
4806-
});
4807-
4808-
// Functions that got a new link name
4809-
cfg.skip_fn_ptrcheck(|f| match f {
4810-
"pthread_mutex_timedlock"
4811-
| "recvmmsg"
4812-
| "fstat"
4813-
| "stat"
4814-
| "fstatat"
4815-
| "nanosleep"
4816-
| "utime"
4817-
| "lstat"
4818-
| "getrusage"
4819-
| "pthread_cond_timedwait"
4820-
| "utimes"
4821-
| "dlsym"
4822-
| "gmtime_r"
4823-
| "localtime_r"
4824-
| "mktime"
4825-
| "time"
4826-
| "gmtime"
4827-
| "localtime"
4828-
| "difftime"
4829-
| "timegm"
4830-
| "select"
4831-
| "adjtime"
4832-
| "pselect"
4833-
| "clock_getres"
4834-
| "clock_gettime"
4835-
| "clock_settime"
4836-
| "futimens"
4837-
| "utimensat"
4838-
| "wait4"
4839-
| "aio_suspend"
4840-
| "futimes"
4841-
| "mq_timedreceive"
4842-
| "mq_timedsend"
4843-
| "lutimes"
4844-
| "timerfd_gettime"
4845-
| "timerfd_settime"
4846-
| "sigtimedwait"
4847-
| "settimeofday"
4848-
| "sched_rr_get_interval"
4849-
| "sem_timedwait"
4850-
| "ppoll"
4851-
| "clock_nanosleep"
4852-
| "timer_gettime"
4853-
| "timer_settime"
4854-
| "gettimeofday"
4855-
| "adjtimex"
4856-
| "clock_adjtime" => true,
4857-
_ => false,
4858-
});
4859-
}
4860-
48614784
ctest::generate_test(&mut cfg, "../src/lib.rs", "ctest_output.rs").unwrap();
48624785

48634786
if !l4re {

0 commit comments

Comments
 (0)