1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 03:27:44 +00:00

stat: fix test on travis

/dev/pts/ptmx seems to be the only character special file in /dev
which is not a bind-mount in the docker container run by travis.
gnu stat does not detect these mounts, so produces a different
output for /dev/zero.
This commit is contained in:
Wim Hueskes 2016-11-21 19:36:23 +01:00
parent de8d96ff7c
commit e2519bf0b3

View file

@ -207,7 +207,7 @@ fn test_symlink() {
#[test]
#[cfg(target_os = "linux")]
fn test_char() {
let args = ["-c", DEV_FMTSTR, "/dev/zero"];
let args = ["-c", DEV_FMTSTR, "/dev/pts/ptmx"];
new_ucmd!().args(&args)
.run()
.stdout_is(expected_result(&args));