mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 19:47:45 +00:00
stat: remove warning in test
This commit is contained in:
parent
7a152248aa
commit
5ef26aad1c
1 changed files with 4 additions and 4 deletions
|
@ -145,11 +145,11 @@ fn test_invalid_option() {
|
||||||
ucmd.fails();
|
ucmd.fails();
|
||||||
}
|
}
|
||||||
|
|
||||||
#[allow(unused_variable)]
|
#[cfg(target_os = "linux")]
|
||||||
const NORMAL_FMTSTR: &'static str = "%a %A %b %B %d %D %f %F %g %G %h %i %m %n %o %s %u %U %w %W %x %X %y %Y %z %Z";
|
const NORMAL_FMTSTR: &'static str = "%a %A %b %B %d %D %f %F %g %G %h %i %m %n %o %s %u %U %w %W %x %X %y %Y %z %Z";
|
||||||
#[allow(unused_variable)]
|
#[cfg(target_os = "linux")]
|
||||||
const DEV_FMTSTR: &'static str = "%a %A %b %B %d %D %f %F %g %G %h %i %m %n %o %s (%t/%T) %u %U %w %W %x %X %y %Y %z %Z";
|
const DEV_FMTSTR: &'static str = "%a %A %b %B %d %D %f %F %g %G %h %i %m %n %o %s (%t/%T) %u %U %w %W %x %X %y %Y %z %Z";
|
||||||
#[allow(unused_variable)]
|
#[cfg(target_os = "linux")]
|
||||||
const FS_FMTSTR: &'static str = "%a %b %c %d %f %i %l %n %s %S %t %T";
|
const FS_FMTSTR: &'static str = "%a %b %c %d %f %i %l %n %s %S %t %T";
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
@ -233,7 +233,7 @@ fn test_printf() {
|
||||||
assert_eq!(ucmd.run().stdout, "123?\r\"\\\x07\x08\x1B\x0C\x0B /\x12wZJ\n");
|
assert_eq!(ucmd.run().stdout, "123?\r\"\\\x07\x08\x1B\x0C\x0B /\x12wZJ\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
#[allow(dead_code)]
|
#[cfg(target_os = "linux")]
|
||||||
fn expected_result(args: &[&str]) -> String {
|
fn expected_result(args: &[&str]) -> String {
|
||||||
use std::process::Command;
|
use std::process::Command;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue