Skip to content

Commit fa03130

Browse files
committed
disable failing uptime test for musl
musl libc only provides stub functions for utmpx, thus this test cannot pass with musl libc. Signed-off-by: Etienne Cordonnier <ecordonnier@snap.com>
1 parent 8f809f5 commit fa03130

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/by-util/test_uptime.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ fn test_uptime_with_non_existent_file() {
103103
// This will pass
104104
#[test]
105105
#[cfg(not(any(target_os = "openbsd", target_os = "macos")))]
106+
#[cfg(not(target_env = "musl"))]
106107
#[cfg_attr(
107108
all(target_arch = "aarch64", target_os = "linux"),
108109
ignore = "Issue #7159 - Test not supported on ARM64 Linux"

0 commit comments

Comments
 (0)