From e2519bf0b3b11fdc4e076d026e65ca17a11935db Mon Sep 17 00:00:00 2001 From: Wim Hueskes Date: Mon, 21 Nov 2016 19:36:23 +0100 Subject: [PATCH] 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. --- tests/test_stat.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_stat.rs b/tests/test_stat.rs index 68e4f991a..668e1ecfe 100644 --- a/tests/test_stat.rs +++ b/tests/test_stat.rs @@ -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));