1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-09-14 11:07:59 +00:00

touch: re-enable test, fix typo in expected error messge

This commit is contained in:
Ben Wiederhake 2024-02-20 04:07:32 +01:00
parent e50eb19056
commit 27030e9f53

View file

@ -846,13 +846,11 @@ fn test_touch_dash() {
} }
#[test] #[test]
// Chrono panics for now
#[ignore]
fn test_touch_invalid_date_format() { fn test_touch_invalid_date_format() {
let (_at, mut ucmd) = at_and_ucmd!(); let (_at, mut ucmd) = at_and_ucmd!();
let file = "test_touch_invalid_date_format"; let file = "test_touch_invalid_date_format";
ucmd.args(&["-m", "-t", "+1000000000000 years", file]) ucmd.args(&["-m", "-t", "+1000000000000 years", file])
.fails() .fails()
.stderr_contains("touch: invalid date format +1000000000000 years"); .stderr_contains("touch: invalid date format '+1000000000000 years'");
} }