Skip to content

Commit 81dcc04

Browse files
committed
Revert "test: musl: Skip time64-dependent API on new musl"
This reverts commit 72fe537.
1 parent e387c5d commit 81dcc04

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
@@ -4749,83 +4749,6 @@ fn test_linux(target: &str) {
47494749
_ => false,
47504750
});
47514751

4752-
// FIXME(musl,time): these should be resolved with the time64 updates
4753-
if musl_v1_2_3 {
4754-
// Time primitives changed, as did structs containing them
4755-
cfg.skip_alias(|ty| match ty.ident() {
4756-
"time_t" | "suseconds_t" => true,
4757-
_ => false,
4758-
});
4759-
cfg.skip_struct(|s| match s.ident() {
4760-
"utimbuf" | "timeval" | "timespec" | "rusage" | "itimerval" | "itimerspec"
4761-
| "timex" | "ntptimeval" | "stat" | "shmid_ds" | "msqid_ds" => true,
4762-
_ => false,
4763-
});
4764-
4765-
cfg.skip_const(|c| match c.ident() {
4766-
// Changed syscall numbers under `linux_time_bits64`
4767-
"SO_TIMESTAMP" | "SO_TIMESTAMPNS" | "SO_TIMESTAMPING" | "SO_RCVTIMEO"
4768-
| "SO_SNDTIMEO" => true,
4769-
// Derived from `SO_` constants
4770-
"SCM_TIMESTAMP" | "SCM_TIMESTAMPNS" | "SCM_TIMESTAMPING" => true,
4771-
// `IPC_STAT` and derived values
4772-
"IPC_STAT" | "SEM_STAT" | "SEM_STAT_ANY" => true,
4773-
_ => false,
4774-
});
4775-
4776-
// Functions that got a new link name
4777-
cfg.skip_fn_ptrcheck(|f| match f {
4778-
"pthread_mutex_timedlock"
4779-
| "recvmmsg"
4780-
| "fstat"
4781-
| "stat"
4782-
| "fstatat"
4783-
| "nanosleep"
4784-
| "utime"
4785-
| "lstat"
4786-
| "getrusage"
4787-
| "pthread_cond_timedwait"
4788-
| "utimes"
4789-
| "dlsym"
4790-
| "gmtime_r"
4791-
| "localtime_r"
4792-
| "mktime"
4793-
| "time"
4794-
| "gmtime"
4795-
| "localtime"
4796-
| "difftime"
4797-
| "timegm"
4798-
| "select"
4799-
| "adjtime"
4800-
| "pselect"
4801-
| "clock_getres"
4802-
| "clock_gettime"
4803-
| "clock_settime"
4804-
| "futimens"
4805-
| "utimensat"
4806-
| "wait4"
4807-
| "aio_suspend"
4808-
| "futimes"
4809-
| "mq_timedreceive"
4810-
| "mq_timedsend"
4811-
| "lutimes"
4812-
| "timerfd_gettime"
4813-
| "timerfd_settime"
4814-
| "sigtimedwait"
4815-
| "settimeofday"
4816-
| "sched_rr_get_interval"
4817-
| "sem_timedwait"
4818-
| "ppoll"
4819-
| "clock_nanosleep"
4820-
| "timer_gettime"
4821-
| "timer_settime"
4822-
| "gettimeofday"
4823-
| "adjtimex"
4824-
| "clock_adjtime" => true,
4825-
_ => false,
4826-
});
4827-
}
4828-
48294752
ctest::generate_test(&mut cfg, "../src/lib.rs", "ctest_output.rs").unwrap();
48304753

48314754
test_linux_like_apis(target);

0 commit comments

Comments
 (0)