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

This commit is contained in:
Ben Wiederhake
2024-02-23 00:21:19 +01:00
parent e50eb19056
commit 27030e9f53
+1 -3
View File
@@ -846,13 +846,11 @@ fn test_touch_dash() {
}
#[test]
// Chrono panics for now
#[ignore]
fn test_touch_invalid_date_format() {
let (_at, mut ucmd) = at_and_ucmd!();
let file = "test_touch_invalid_date_format";
ucmd.args(&["-m", "-t", "+1000000000000 years", file])
.fails()
.stderr_contains("touch: invalid date format +1000000000000 years");
.stderr_contains("touch: invalid date format '+1000000000000 years'");
}