Skip to content

Commit 2c064f0

Browse files
committed
update test_x86_rtc
1 parent fa9d007 commit 2c064f0

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

tests/test_x86_rtc.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
//! tests/test_x86_rtc.rs
22
//! Integration tests for x86_rtc that are safe on CI.
33
//
4-
// --------------- helper:检测端口访问权限 -----------------
54
#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
65
fn have_cmos_io_priv() -> bool {
7-
// ioperm(0x70, 2, 1) → 成功返回 0
86
unsafe { libc::ioperm(0x70, 2, 1) == 0 }
97
}
108

0 commit comments

Comments
 (0)