mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
fix: cargo fmt and restrict /dev/full tests to Linux
This commit is contained in:
committed by
Sylvestre Ledru
parent
d15e762a90
commit
dec633c0bd
@@ -510,9 +510,9 @@ pub fn uumain(args: impl uucore::Args) -> UResult<()> {
|
||||
}
|
||||
}
|
||||
|
||||
stdout.flush().map_err(|e| {
|
||||
USimpleError::new(1, translate!("date-error-write", "error" => e))
|
||||
})?;
|
||||
stdout
|
||||
.flush()
|
||||
.map_err(|e| USimpleError::new(1, translate!("date-error-write", "error" => e)))?;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
||||
@@ -729,7 +729,7 @@ fn test_read_error() {
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[cfg(unix)]
|
||||
#[cfg(target_os = "linux")]
|
||||
fn test_comm_write_error_dev_full() {
|
||||
use std::fs::OpenOptions;
|
||||
let scene = TestScenario::new(util_name!());
|
||||
|
||||
@@ -2068,7 +2068,7 @@ fn test_percent_percent_not_replaced() {
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[cfg(unix)]
|
||||
#[cfg(target_os = "linux")]
|
||||
fn test_date_write_error_dev_full() {
|
||||
use std::fs::OpenOptions;
|
||||
let dev_full = OpenOptions::new().write(true).open("/dev/full").unwrap();
|
||||
|
||||
Reference in New Issue
Block a user